class IceCube::YamlParser

Constants

SERIALIZED_START

Attributes

hash[R]

Public Class Methods

new(yaml) click to toggle source
# File lib/ice_cube/parsers/yaml_parser.rb, line 10
def initialize(yaml)
  @hash = YAML::load(yaml)
  yaml.match SERIALIZED_START do |match|
    start_time = hash[:start_time] || hash[:start_date]
    TimeUtil.restore_deserialized_offset start_time, match[:tz]
  end
end