Skip to content

Instantly share code, notes, and snippets.

@pankoholic
Created July 1, 2012 21:05
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 pankoholic/3029636 to your computer and use it in GitHub Desktop.
Save pankoholic/3029636 to your computer and use it in GitHub Desktop.
dog with @
class Dog
attr_reader :age
def initialize(age)
@age = age
end
end
d = Dog.new(8)
puts d.age
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment