Class: Ruth::Gemfile::Yaml

Inherits:
Hash
  • Object
show all
Defined in:
lib/ruth/yaml.rb

Overview

YAML suppoer for Ruth

Instance Attribute Summary collapse

Attributes inherited from Hash

#data, #file, #gem, #gemfile

Instance Method Summary collapse

Methods inherited from Hash

#output

Constructor Details

#initialize(yaml) ⇒ Yaml

Returns a new instance of Yaml.



9
10
11
12
13
14
# File 'lib/ruth/yaml.rb', line 9

def initialize(yaml)
  super()

  @yaml = yaml
  @data = parse_yaml
end

Instance Attribute Details

#yamlObject

Returns the value of attribute yaml.



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

def yaml
  @yaml
end