Skip to content

Instantly share code, notes, and snippets.

@TalkativeTree
Created January 10, 2014 08:33
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 TalkativeTree/8348624 to your computer and use it in GitHub Desktop.
Save TalkativeTree/8348624 to your computer and use it in GitHub Desktop.
public methods
class Tester
public
def grab(string)
puts string
end
end
#=> nil
#> grab('asda')
#NoMethodError: undefined method `grab' for main:Object
#from (pry):7:in `__pry__'
#> Tester.new.grab('string')
#string
#=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment