Class: HTML::Pipeline::TaskList::Item
- Inherits:
-
Struct
- Object
- Struct
- HTML::Pipeline::TaskList::Item
- Defined in:
- lib/html/pipeline/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
-
#complete? ⇒ Boolean
Public: Check if a task list is complete.
Instance Attribute Details
#checkbox_text ⇒ Object
Returns the value of attribute checkbox_text
31 32 33 |
# File 'lib/html/pipeline/task_list.rb', line 31 def checkbox_text @checkbox_text end |
#source ⇒ Object
Returns the value of attribute source
31 32 33 |
# File 'lib/html/pipeline/task_list.rb', line 31 def source @source end |
Instance Method Details
#complete? ⇒ Boolean
45 46 47 |
# File 'lib/html/pipeline/task_list.rb', line 45 def complete? checkbox_text =~ COMPLETE end |