Class: Opera::Operation::Builder::InnerBuilder
- Inherits:
-
Object
- Object
- Opera::Operation::Builder::InnerBuilder
- Defined in:
- lib/opera/operation/builder.rb
Instance Attribute Summary collapse
-
#instructions ⇒ Object
readonly
Returns the value of attribute instructions.
Instance Method Summary collapse
-
#initialize(&block) ⇒ InnerBuilder
constructor
A new instance of InnerBuilder.
Constructor Details
#initialize(&block) ⇒ InnerBuilder
Returns a new instance of InnerBuilder.
27 28 29 30 |
# File 'lib/opera/operation/builder.rb', line 27 def initialize(&block) @instructions = [] instance_eval(&block) if block_given? end |
Instance Attribute Details
#instructions ⇒ Object (readonly)
Returns the value of attribute instructions.
25 26 27 |
# File 'lib/opera/operation/builder.rb', line 25 def instructions @instructions end |