Create a gist now

Instantly share code, notes, and snippets.

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