Class: Opera::Operation::Builder::InnerBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/opera/operation/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#instructionsObject (readonly)

Returns the value of attribute instructions.



25
26
27
# File 'lib/opera/operation/builder.rb', line 25

def instructions
  @instructions
end