faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
raz has joined #amber
raz has quit [Changing host]
raz has joined #amber
_whitelogger has joined #amber
<FromGitter> <andrewc910> How would you guys handle this problem. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5efcb6f2e0e5673398e781a6]
<FromGitter> <Blacksmoke16> would have to base it off the parent type/module
<FromGitter> <Blacksmoke16> like `klass.is_a? Granite::Base`
<FromGitter> <andrewc910> Yeah the problem is `Granite::Base` is a constant that may not be defined if you are using Jennifer. ⏎ ⏎ ```class User ⏎ end ⏎ ⏎ pp User.is_a? Granite::Base``` ⏎ ⏎ Results in `Error: undefined constant Granite::Base` ... [https://gitter.im/amberframework/amber?at=5efcba11e0e5673398e790d7]
<FromGitter> <Blacksmoke16> imo what i would do is have extensions for each
<FromGitter> <Blacksmoke16> ```require "mochi" ⏎ require "mochi/ext/granite"``` ⏎ ⏎ or something like that [https://gitter.im/amberframework/amber?at=5efcbad6c223cc536a491bbe]
<FromGitter> <Blacksmoke16> where each ext just defines the same class with different implementations
<FromGitter> <Blacksmoke16> i think that would be a better approach that tightly coupling your code to other shards
<FromGitter> <andrewc910> Oh, that's right! We discussed that idea before for a different problem. Thank you! That is a perfect solution! :)
<FromGitter> <Blacksmoke16> 👍
robacarp has quit [*.net *.split]
robacarp has joined #amber
feepbot has quit [Ping timeout: 256 seconds]
feepbot has joined #amber
feepbot has quit [Remote host closed the connection]
feepbot has joined #amber