ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
Stephie- has joined #crystal-lang
Stephie has quit [Ping timeout: 248 seconds]
Vexatos_ has joined #crystal-lang
Vexatos has quit [Ping timeout: 252 seconds]
Vexatos_ has quit [Quit: Client Quit]
Stephie- has quit [Quit: Fuck this shit, I'm out!]
Vexatos has joined #crystal-lang
Stephie has joined #crystal-lang
Vexatos_ has joined #crystal-lang
Vexatos has quit [Ping timeout: 248 seconds]
Stephie has quit [Ping timeout: 260 seconds]
Stephie- has joined #crystal-lang
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 256 seconds]
<FromGitter> <revskill10> Hi, is there anyway to get parent class with `@type` ?
<FromGitter> <Blacksmoke16> .superclass
Stephie- has quit [Ping timeout: 252 seconds]
Vexatos_ has quit [Ping timeout: 268 seconds]
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #crystal-lang
<FromGitter> <wwalker> I'm trying to test a result for it's type. I keep getting this: ⏎ 41 | if result.isa?(String) ⏎ ⏎ ``` ^---``` ⏎ ... [https://gitter.im/crystal-lang/crystal?at=63ddf8d6c841ba597f299fb4]
<FromGitter> <wwalker> And of course I should have been using `.class`
Stephie has joined #crystal-lang
Vexatos has joined #crystal-lang
_ht has joined #crystal-lang
uncomfy has joined #crystal-lang
jmdaemon has quit [Ping timeout: 255 seconds]
uncomfy has quit [Remote host closed the connection]
<FromGitter> <revskill10> @wwalker should it be `result.is_a?(String)` ?
taupiqueur2 has quit [Quit: WeeChat 3.8]
<FromGitter> <Blacksmoke16> Yes is_a?
<FromGitter> <Blacksmoke16> A case could also work versus a bunch of elsif
<FromGitter> <revskill10> @Blacksmoke16 Do you know what's best ORM or SQL Query builder that i can use for now ? Preference could be easily to customize/extend.
<FromGitter> <Blacksmoke16> if you're just doing simple stuff i found https://crystal-lang.github.io/crystal-db/api/0.11.0/DB/Serializable.html and just manually writing the SQL to work quite well
<FromGitter> <wwalker> @revskill10 I started with `.type` and `.is_a?`... Doh! I bet that I actually tried `is_a(String)` (no `?`) Thanks!
Sankalp has quit [Ping timeout: 252 seconds]
Sankalp has joined #crystal-lang
jmdaemon has joined #crystal-lang
taupiqueur has joined #crystal-lang
dostoyevsky2 has quit [Quit: leaving]
dostoyevsky2 has joined #crystal-lang
ur5us has joined #crystal-lang
_ht has quit [Quit: _ht]
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 260 seconds]
nrchlnx65 has joined #crystal-lang
nrchlnx65 has quit [Client Quit]
nrchlnx has joined #crystal-lang