Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bsimpson
Created September 30, 2013 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bsimpson/6768393 to your computer and use it in GitHub Desktop.
Save bsimpson/6768393 to your computer and use it in GitHub Desktop.
run, do, perform method rename to call
class Foo
def self.perform(foo)
puts foo
end
end
Foo.perform('foo') # => 'foo'
class Foo
def self.call(foo)
puts foo
end
end
Foo.('foo') # => 'foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment