This needs to be defined up front in case any internal classes need to base their behavior off of this.
YAML_ENGINE | = | defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : "syck" |
MULTI_ARGUMENT_YAML_LOAD | = | YAML.method(:load).arity != 1 |
DEFAULT_OPTIONS | = | Deep.freeze({ :default_mode => nil, :suppress_warnings => false, :deserialize_symbols => false, :whitelisted_tags => [], :custom_initializers => {}, :raise_on_unknown_tag => false |
OPTIONS | = | Deep.copy(DEFAULT_OPTIONS) |
TRUSTED_TAGS | = | Set.new([ "tag:yaml.org,2002:binary", "tag:yaml.org,2002:bool#no", "tag:yaml.org,2002:bool#yes", "tag:yaml.org,2002:float", "tag:yaml.org,2002:float#fix", "tag:yaml.org,2002:int", "tag:yaml.org,2002:map", "tag:yaml.org,2002:null", "tag:yaml.org,2002:seq", "tag:yaml.org,2002:str", "tag:yaml.org,2002:timestamp", "tag:yaml.org,2002:timestamp#ymd" |
VERSION | = | "0.9.4" |