class FlexYear::YearRangeParser

Public Class Methods

can_parse?(string) click to toggle source
# File lib/flexyear/range_parsers/year_range_parser.rb, line 3
def self.can_parse?(string)
  string.include?('-') && string =~ /(\d+)\s*-\s*(\d+)/
end

Public Instance Methods

parse() click to toggle source

Nothing to do here, see FlexYear#parse_year

# File lib/flexyear/range_parsers/year_range_parser.rb, line 8
def parse; end