Skip to content

Instantly share code, notes, and snippets.

@Ejhfast
Created December 29, 2010 16:46
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/758720 to your computer and use it in GitHub Desktop.
Save Ejhfast/758720 to your computer and use it in GitHub Desktop.
mix and fstore
def mix(s1, s2, s3, &block)
name = "#{s1.to_s}_#{s2.to_s}_#{s3.to_s}".to_sym
self.send(name) {|a,b| send(s1, send(s2,a), send(s3,b))}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment