Skip to content

Instantly share code, notes, and snippets.

@codesword
Created June 5, 2016 11:52
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 codesword/50d671a319492ce47308d50c8291a84d to your computer and use it in GitHub Desktop.
Save codesword/50d671a319492ce47308d50c8291a84d to your computer and use it in GitHub Desktop.
eval("5 + 10") #=> 15
eval("def name; 'Ikem Okonkwo'; end;") # creates a method called name
name #=> "Ikem Okonkwo" calls the method created by eval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment