module I18n::Processes::Data::Adapter::YamlAdapter
Public Class Methods
dump(tree, options)
click to toggle source
@return [String]
# File lib/i18n/processes/data/adapter/yaml_adapter.rb, line 20 def dump(tree, options) tree.to_yaml(options || {}) end
parse(str, options)
click to toggle source
@return [Hash] locale tree
# File lib/i18n/processes/data/adapter/yaml_adapter.rb, line 10 def parse(str, options) if YAML.method(:load).arity.abs == 2 YAML.load(str, options || {}) else # older jruby and rbx 2.2.7 do not accept options YAML.load(str) end end