Class: DefResource::Config
- Inherits:
-
Object
- Object
- DefResource::Config
- Defined in:
- lib/def_resource/config.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/def_resource/config.rb', line 5 def initialize &block instance_eval &block if block_given? end |
Instance Attribute Details
#model ⇒ Object
Returns the value of attribute model.
3 4 5 |
# File 'lib/def_resource/config.rb', line 3 def model @model end |
#resource ⇒ Object
Returns the value of attribute resource.
3 4 5 |
# File 'lib/def_resource/config.rb', line 3 def resource @resource end |