Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created June 18, 2012 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poincare/2949938 to your computer and use it in GitHub Desktop.
Save Poincare/2949938 to your computer and use it in GitHub Desktop.
class Robot
def forward
puts "forward"
end
def backward
puts "backward"
end
def right
puts "right"
end
def left
puts "left"
end
end
Robot.new.instance_eval do
forward
backward
left
right
right
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment