Module: DataBindings::Adapters::YAML
- Includes:
- Ruby
- Defined in:
- lib/data_bindings/adapters/yaml.rb
Defined Under Namespace
Modules: Convert
Instance Method Summary collapse
Methods included from Ruby
#from_ruby, #from_ruby_array, #from_ruby_hash
Instance Method Details
#from_yaml(str) ⇒ Object
8 9 10 |
# File 'lib/data_bindings/adapters/yaml.rb', line 8 def from_yaml(str) from_ruby(::YAML::load(str)) end |
#from_yaml_file(f) ⇒ Object
12 13 14 |
# File 'lib/data_bindings/adapters/yaml.rb', line 12 def from_yaml_file(f) from_ruby(::YAML::load_file(f)) end |