Классы / Конструкторы

class Man
    attr_reader :name

    def initialize(name)
        @name = name
    end
end

class Employee < Man
    attr_reader :position

    def initialize(name, position)
        super(name)
        @position = position
    end
end

employee = Employee.new("Max""booker")

puts "name is '#{employee.name}'"
puts "position is '#{employee.position}'"