Class: AnnotateYaml::YamlHashExplorer

Inherits:
Object
  • Object
show all
Defined in:
lib/annotate_yaml/annotate_yaml.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ YamlHashExplorer

Returns a new instance of YamlHashExplorer.



9
10
11
12
# File 'lib/annotate_yaml/annotate_yaml.rb', line 9

def initialize(hash)
  @result = []
  yaml_navigation(hash, [])
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



7
8
9
# File 'lib/annotate_yaml/annotate_yaml.rb', line 7

def result
  @result
end