Class: Expo2::Merger

Inherits:
Struct
  • Object
show all
Defined in:
lib/expo2.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



71
72
73
# File 'lib/expo2.rb', line 71

def block
  @block
end

Instance Method Details

#go(object, context, index = nil) ⇒ Object



72
73
74
# File 'lib/expo2.rb', line 72

def go(object, context, index=nil)
  self.block.call(context, index)
end

#inspectObject



75
76
77
# File 'lib/expo2.rb', line 75

def inspect
  "<Expo2::Merger>"
end