Class: Settings::Yaml

Inherits:
Object
  • Object
show all
Defined in:
lib/configurates/provider/yaml.rb

Defined Under Namespace

Classes: FileNotFound

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



19
20
21
# File 'lib/configurates/provider/yaml.rb', line 19

def data
  @data
end

Class Method Details

.load(path = nil) ⇒ Object



11
12
13
14
# File 'lib/configurates/provider/yaml.rb', line 11

def self.load(path = nil)
  path ||= '../configs/default.yml'
  new(path)
end