class IceCube::YamlParser
Constants
- SERIALIZED_START
Attributes
Public Class Methods
Source
# File lib/ice_cube/parsers/yaml_parser.rb, line 9 def initialize(yaml) @hash = YAML.safe_load(yaml, permitted_classes: [Date, Symbol, Time], aliases: true) yaml.match SERIALIZED_START do |match| start_time = hash[:start_time] || hash[:start_date] TimeUtil.restore_deserialized_offset start_time, match[:tz] end end