class Todo
Representation of the main entity of the program, a to do item.
Attributes
description[RW]
Public Class Methods
new(description:)
click to toggle source
# File lib/todo.rb, line 7 def initialize(description:) @description = description end
Public Instance Methods
update(**attrs)
click to toggle source
# File lib/todo.rb, line 11 def update(**attrs) attrs.each do |attr, value| instance_variable_set("@#{attr}".to_sym, value) end end