class Yarrow::Format::Yaml
Public Class Methods
new(source)
click to toggle source
# File lib/yarrow/format/yaml.rb, line 6 def initialize(source) @data = YAML.load(source, symbolize_names: true) end
Public Instance Methods
[](key)
click to toggle source
# File lib/yarrow/format/yaml.rb, line 10 def [](key) @data[key] end
to_h()
click to toggle source
# File lib/yarrow/format/yaml.rb, line 14 def to_h @data end