Module: HumanDateRange

Defined in:
lib/human_date_range.rb,
lib/human_date_range/parser.rb,
lib/human_date_range/version.rb

Defined Under Namespace

Classes: Parser

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.parse(string, language = :russian, format = "%d-%m-%Y") ⇒ Object



8
9
10
# File 'lib/human_date_range.rb', line 8

def self.parse(string, language=:russian, format="%d-%m-%Y")
  Parser.new(string, language, format).parse
end