class TaskList
encoding: utf-8
Constants
- VERSION
Attributes
record[R]
Public Class Methods
asset_paths()
click to toggle source
# File lib/task_list/railtie.rb, line 7 def self.asset_paths @paths ||= Dir[root_path.join("app/assets/*")] end
filter(*args)
click to toggle source
Returns a `Nokogiri::DocumentFragment` object.
# File lib/task_list/filter.rb, line 6 def self.filter(*args) Filter.call(*args) end
new(record)
click to toggle source
`record` is the resource with the Markdown source text with task list items following this syntax:
- [ ] a task list item - [ ] another item - [x] a completed item
# File lib/task_list.rb, line 15 def initialize(record) @record = record end
root_path()
click to toggle source
# File lib/task_list/railtie.rb, line 3 def self.root_path @root_path ||= Pathname.new(File.expand_path("../../../", __FILE__)) end
Public Instance Methods
summary()
click to toggle source
Public: return the TaskList::Summary for this task list.
Returns a TaskList::Summary.
# File lib/task_list.rb, line 22 def summary @summary ||= TaskList::Summary.new(record.task_list_items) end