1
0
working_class/lib/working_class/task.rb

18 lines
362 B
Ruby

module WorkingClass
class Task
attr_accessor :is_finished, :name, :reminder
def initialize(is_finished, name, reminder = nil)
@is_finished = is_finished
@name = name
@reminder = reminder
end
def has_reminder
reminder != nil
end
alias :has_reminder? :has_reminder
alias :is_finished? :is_finished
end
end