lopex has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 260 seconds]
lopex has joined #jruby
ur5us has joined #jruby
knu has quit [Quit: Reboot...]
knu has joined #jruby
ur5us has quit [Ping timeout: 264 seconds]
<boc_tothefuture[>
Hope everyone is having a wonderful holiday... Had a quick question for the group here.. I checked the docs/wiki best I could but can't figure out what is happening.. I am calling a ruby method with a java object, the ruby method uses splat to take either an item or array of items. It accepts the objects, but then I call flatten on the variable that contains the array of java objects and I get an error "can't
<boc_tothefuture[>
convert Java::OrgOpenhabCoreThingInternal::ThingImpl to Array (Java::OrgOpenhabCoreThingInternal::ThingImpl#to_ary gives Java::OrgOpenhabCoreThingBindingBuilder::ChannelBuilder::ChannelImpl)". So I am guessing JRuby sees something in the java object that it thinks can be used to implement to_ary on it for some reason? But I am not sure what that is.. The object doesnt' extend collection or anything like that.
<boc_tothefuture[>
the only thing I found in the docs was a change that indicated that collection objects no longer auto implemented to_ary
<boc_tothefuture[>
stepping away for a while, but will check back later if anyone has any ideas.
<kares[m]>
`to_ary` should only exist on the Java object if it implements the `java.util.List` interface, is that the case?