module Month::ScalarScannerPatch

Constants

REGEXP

Public Instance Methods

tokenize(string) click to toggle source
Calls superclass method
# File lib/month/yaml.rb, line 11
def tokenize(string)
  if !string.empty? && string.match(REGEXP)
    return Month.new($1.to_i, $2.to_i)
  end

  super string
end