Class: TaskList::Item
- Inherits:
-
Struct
- Object
- Struct
- TaskList::Item
- Defined in:
- lib/task_list.rb
Constant Summary collapse
- Complete =
see TaskList::Filter
/\[[xX]\]/.freeze
Instance Attribute Summary collapse
-
#checkbox_text ⇒ Object
Returns the value of attribute checkbox_text.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#checkbox_text ⇒ Object
Returns the value of attribute checkbox_text
26 27 28 |
# File 'lib/task_list.rb', line 26 def checkbox_text @checkbox_text end |
#source ⇒ Object
Returns the value of attribute source
26 27 28 |
# File 'lib/task_list.rb', line 26 def source @source end |
Instance Method Details
#complete? ⇒ Boolean
28 29 30 |
# File 'lib/task_list.rb', line 28 def complete? checkbox_text =~ Complete end |