Class: Ufo::Yaml::Loader
- Inherits:
-
Object
- Object
- Ufo::Yaml::Loader
- Defined in:
- lib/ufo/yaml/loader.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ Loader
constructor
A new instance of Loader.
- #load ⇒ Object
Constructor Details
#initialize(text) ⇒ Loader
Returns a new instance of Loader.
5 6 7 |
# File 'lib/ufo/yaml/loader.rb', line 5 def initialize(text) @text = text end |
Instance Method Details
#load ⇒ Object
9 10 11 12 |
# File 'lib/ufo/yaml/loader.rb', line 9 def load add_domain_types! YAML.load(@text) end |