class ImaHigherOrder def f(x) return x + 3 end def z(x) return method(x) end end x = ImaHigherOrder.new puts x.z(:f)
Standard input is empty
#<Method: ImaHigherOrder#f>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!