Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2016 17:47
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 anonymous/1d1d77eab8bd601a4005285f1d8bfc77 to your computer and use it in GitHub Desktop.
Save anonymous/1d1d77eab8bd601a4005285f1d8bfc77 to your computer and use it in GitHub Desktop.
class superclass
@tminutes = 60
def initalize
# do nothing
end
end
class subclass
def getminutes
@tminutes
end
end
sc = subclass.new()
puts sc.getminutes #this will fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment