Class: InlineExpo

Inherits:
Struct
  • Object
show all
Defined in:
lib/presenters/inline_expo.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



1
2
3
# File 'lib/presenters/inline_expo.rb', line 1

def block
  @block
end

Instance Method Details

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



2
3
4
# File 'lib/presenters/inline_expo.rb', line 2

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

#inspectObject



6
7
8
# File 'lib/presenters/inline_expo.rb', line 6

def inspect
  "<Expo2::InlineExpo>"
end