Created
September 30, 2013 18:58
-
-
Save bsimpson/6768393 to your computer and use it in GitHub Desktop.
run, do, perform method rename to call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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