class FlexYear::DecadeParser
Public Class Methods
can_parse?(string)
click to toggle source
# File lib/flexyear/range_parsers/decade_parser.rb, line 3 def self.can_parse?(string) string.end_with?('s') end
Public Instance Methods
parse()
click to toggle source
# File lib/flexyear/range_parsers/decade_parser.rb, line 7 def parse [0, 9] end