Class: Vagrant::Config::Base
- Inherits:
-
Object
- Object
- Vagrant::Config::Base
show all
- Defined in:
- lib/vagrant/config.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
42
43
44
|
# File 'lib/vagrant/config.rb', line 42
def env
@env
end
|
Instance Method Details
#[](key) ⇒ Object
44
45
46
|
# File 'lib/vagrant/config.rb', line 44
def [](key)
send(key)
end
|
#instance_variables_hash ⇒ Object
52
53
54
55
56
57
|
# File 'lib/vagrant/config.rb', line 52
def instance_variables_hash
instance_variables.inject({}) do |acc, iv|
acc[iv.to_s[1..-1].to_sym] = instance_variable_get(iv)
acc
end
end
|
#to_json ⇒ Object
48
49
50
|
# File 'lib/vagrant/config.rb', line 48
def to_json
instance_variables_hash.to_json
end
|