Skip to content

@danielcooper /gist:3932446
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
class Person
attr_accessor :name
def initialize(name)
@name = name
end
end
class Employee < Person
attr_accessor :salary
def pay
"paid this months salary: £#{@salary}"
end
def drink_coffee
'glug glug'
end
end
class Developer < Employee
def make_bugs
"#{@name} does some typing"
end
end
class Tester < Employee
def test
"#{@name} does some testing"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.