Skip to content

Instantly share code, notes, and snippets.

@Ejhfast
Created December 29, 2010 16:14
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 Ejhfast/758686 to your computer and use it in GitHub Desktop.
Save Ejhfast/758686 to your computer and use it in GitHub Desktop.
mix in fstore
# Mix a few methods
e.mix(:plus, :double, :triple)
# => create: def plus_double_triple a,b ; plus (double a) (triple b) ; end
# We can call the new method
e.plus_double_triple 2, 3 #=> (plus (double 2) (triple 3)) => 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment