class Startback::Operation::MultiOperation
Attributes
ops[R]
Public Class Methods
new(ops = [])
click to toggle source
# File lib/startback/operation/multi_operation.rb, line 5 def initialize(ops = []) @ops = ops end
Public Instance Methods
+(other)
click to toggle source
# File lib/startback/operation/multi_operation.rb, line 14 def +(other) MultiOperation.new(@ops + Array(other)) end
bind(world)
click to toggle source
# File lib/startback/operation/multi_operation.rb, line 18 def bind(world) MultiOperation.new(ops.map{|op| op.bind(world) }) end
call()
click to toggle source
# File lib/startback/operation/multi_operation.rb, line 22 def call ops.map{|op| op.call } end
size()
click to toggle source
# File lib/startback/operation/multi_operation.rb, line 10 def size ops.size end