Skip to content

Instantly share code, notes, and snippets.

@allomov
Created December 9, 2010 15:54
Show Gist options
  • Save allomov/734876 to your computer and use it in GitHub Desktop.
Save allomov/734876 to your computer and use it in GitHub Desktop.
class MyClass
private
def say_hello(name)
puts "Hello, #{name}."
end
end
my_object = MyClass.new
my_object.send :say_hello, "world"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment