Class: Ufo::Yaml::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/ufo/yaml/loader.rb

Instance Method Summary collapse

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

#loadObject



9
10
11
12
# File 'lib/ufo/yaml/loader.rb', line 9

def load
  add_domain_types!
  YAML.load(@text)
end