Hi all!
I’m trying to use the java-gstreamer library. They’re using this class
with some interface methods. I want to add the methods via jruby in an
easy way.
How can I do this?
I’ve now got this: Parked at Loopia
But I would rather not make a seperate class for each method. That’s
just silly?
Why did they do that? Wouldn’t it be just easier to have a class
Callbacks (or something) with in it all the methods?
I read somewhere I can do this:
class Listener
include MenuListener
implement MenuListener #=> creates empty methods menuCanceled,
menuDeselected, menuSelected
def menuSelected(event) #=> the one we care about
…
end
end
but then I have to make a class for every calllback too!