Class: ClusterFuck::Configuration

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/cluster-fuck/configuration.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_yaml(yaml) ⇒ Object



4
5
6
# File 'lib/cluster-fuck/configuration.rb', line 4

def self.from_yaml(yaml)
  new(YAML.load(yaml))
end

Instance Method Details

#to_yamlObject



8
9
10
# File 'lib/cluster-fuck/configuration.rb', line 8

def to_yaml
  YAML.dump(to_hash)
end