secret
Created

  • Download Gist
example.rb
Ruby
1 2 3 4 5 6 7
class SomeClass
def initialize(foo)
define_singleton_method(:hello) { foo }
end
end
 
puts SomeClass.new("yo").hello

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.