class Rundown::Processors::Dates
Attributes
parser[RW]
text[RW]
Public Class Methods
new(words, parser=Nickel)
click to toggle source
# File lib/rundown/processors/dates.rb, line 6 def initialize(words, parser=Nickel) @text = words @parser = parser end
Public Instance Methods
process()
click to toggle source
# File lib/rundown/processors/dates.rb, line 11 def process parser.parse(text).occurrences end