Class: Build::Environment::Define
- Inherits:
-
Struct
- Object
- Struct
- Build::Environment::Define
- Defined in:
- lib/build/environment/constructor.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#klass ⇒ Object
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass, &block) ⇒ Define
constructor
A new instance of Define.
- #to_s ⇒ Object
Constructor Details
#initialize(klass, &block) ⇒ Define
Returns a new instance of Define.
29 30 31 |
# File 'lib/build/environment/constructor.rb', line 29 def initialize(klass, &block) super klass, block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
28 29 30 |
# File 'lib/build/environment/constructor.rb', line 28 def block @block end |
#klass ⇒ Object
Returns the value of attribute klass
28 29 30 |
# File 'lib/build/environment/constructor.rb', line 28 def klass @klass end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/build/environment/constructor.rb', line 33 def to_s "#<#{klass} #{block ? block.source_location.join(':') : 'unknown'}>" end |