Module: TomlRB::LocalDateParser

Defined in:
lib/toml-rb/datetime.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



24
25
26
27
# File 'lib/toml-rb/datetime.rb', line 24

def value
  year, mon, day = captures[:date_skeleton].first.value
  Time.local(year, mon, day)
end