jeremyevans has joined #jruby
fidothe has quit [Read error: Connection reset by peer]
fidothe has joined #jruby
jeremyevans has quit [Ping timeout: 265 seconds]
ur5us has joined #jruby
ur5us has quit [Ping timeout: 264 seconds]
jeremyevans has joined #jruby
<kares[m]> maybe there's a `toAry` method on the Java side?
ur5us has joined #jruby
jeremyevans has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 260 seconds]
jeremyevans has joined #jruby
<boc_tothefuture[> @ka
<headius[m]> boc_tothefuture: that is quite odd
<headius[m]> the logic for flatton
<headius[m]> the logic for flatten should only convert if the target object responds to to_ary
<headius[m]> I don't see any issue in the code
<headius[m]> maybe you have defined method_missing on it
<headius[m]> your output above seems to show that it is calling to_ary and getting back a ChannelImpl
<headius[m]> boc_tothefuture: yeah that would be my best guess... you have a method_missing that is receiving to_ary and returning one of the channels in your ThingImpl
<headius[m]> it then fails because it expects to_ary to have produced an Array
ur5us has joined #jruby
<boc_tothefuture[> hmmm.. I haven't defined method_missing on that object.. its a base java object that I am not doing anything with besides putting it in an array.
<boc_tothefuture[> Is there any debug flags I could add that might give more info? I have method_missing defined elsewhere... but I put other objects in arrays and call flatten without issue. I have no method missing anywhere that would return a ChannelImpl.
<boc_tothefuture[> If you look at the java object above, there is a method that returns a List<Channel> objects.. but I have no idea why it would be getting called
<boc_tothefuture[> let me check all my method_mising impls..
<boc_tothefuture[> wow.. you are right :( .. I forgot I did that for a different use case which is no longer valid.. I owe you a beverage.
<boc_tothefuture[> FYI.. its in alpha and is missing some key features, but I have released the JRuby based automation language for OpenHAB, its here: https://github.com/boc-tothefuture/openhab-jruby
<boc_tothefuture[> Thanks for all your help in getting me this far.
ur5us_ has joined #jruby
ur5us has quit [Ping timeout: 268 seconds]