fork download
class ImaHigherOrder
  def f(x)
    return x + 3
  end

  def z(x)
    return method(x)
  end
end

x = ImaHigherOrder.new
puts x.z(:f)
Success #stdin #stdout 0.05s 9608KB
stdin
Standard input is empty
stdout
#<Method: ImaHigherOrder#f>