Class: Econfig::YAML
- Inherits:
-
Object
- Object
- Econfig::YAML
- Defined in:
- lib/blueprint_config/yaml.rb
Instance Method Summary collapse
- #get(key) ⇒ Object
- #has_key?(key) ⇒ Boolean
-
#initialize(path) ⇒ YAML
constructor
A new instance of YAML.
- #keys ⇒ Object
Constructor Details
#initialize(path) ⇒ YAML
Returns a new instance of YAML.
8 9 10 11 12 |
# File 'lib/blueprint_config/yaml.rb', line 8 def initialize(path) @path = path @mutex = Mutex.new @options = nil end |
Instance Method Details
#get(key) ⇒ Object
18 19 20 |
# File 'lib/blueprint_config/yaml.rb', line 18 def get(key) [key] end |
#has_key?(key) ⇒ Boolean
22 23 24 |
# File 'lib/blueprint_config/yaml.rb', line 22 def has_key?(key) .key?(key) end |
#keys ⇒ Object
14 15 16 |
# File 'lib/blueprint_config/yaml.rb', line 14 def keys Set.new(.keys) end |