Class: DefResource::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/def_resource/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modelObject

Returns the value of attribute model.



3
4
5
# File 'lib/def_resource/config.rb', line 3

def model
  @model
end

#resourceObject

Returns the value of attribute resource.



3
4
5
# File 'lib/def_resource/config.rb', line 3

def resource
  @resource
end