Class: Buff::Config::Base
- Inherits:
-
Object
- Object
- Buff::Config::Base
- Extended by:
- Forwardable
- Includes:
- VariaModel
- Defined in:
- lib/buff/config.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path = nil, attributes = {}) ⇒ Base
constructor
A new instance of Base.
- #to_hash ⇒ Object
Constructor Details
#initialize(path = nil, attributes = {}) ⇒ Base
Returns a new instance of Base.
21 22 23 24 25 |
# File 'lib/buff/config.rb', line 21 def initialize(path = nil, attributes = {}) @path = File.(path) if path mass_assign(attributes) end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
13 14 15 |
# File 'lib/buff/config.rb', line 13 def path @path end |
Instance Method Details
#to_hash ⇒ Object
27 28 29 |
# File 'lib/buff/config.rb', line 27 def to_hash super.deep_symbolize_keys end |