Class: Asuka::Rules::UnorderedList
Instance Attribute Summary
Attributes inherited from Abstract
#acc, #line_formatter, #result
Instance Method Summary
collapse
Methods inherited from Abstract
#initialize
Instance Method Details
#match?(line) ⇒ Boolean
72
73
74
|
# File 'lib/asuka/rules.rb', line 72
def match?(line)
line =~ /^\* /
end
|
#process(line) ⇒ Object
80
81
82
|
# File 'lib/asuka/rules.rb', line 80
def process(line)
acc.push(line_formatter.format(line[2..-1]))
end
|
#transition ⇒ Object
76
77
78
|
# File 'lib/asuka/rules.rb', line 76
def transition
result << Asuka::UnorderedList.new(acc.flush)
end
|