Module: ActiveYaml::FactoryHash
- Included in:
- ActiveYaml
- Defined in:
- lib/active_yaml/factory_hash.rb
Overview
A module with methods that allows you, to work with Yaml files without creating models.
Instance Method Summary collapse
Instance Method Details
#create(file_path) ⇒ Object
10 11 12 13 |
# File 'lib/active_yaml/factory_hash.rb', line 10 def create(file_path) hash = Parser.parse(file_path) YamlHash.new(hash) end |