Class: Decisive::Renderer

Inherits:
Struct
  • Object
show all
Includes:
Enumerable
Defined in:
lib/decisive/renderer.rb

Defined Under Namespace

Classes: Row

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



2
3
4
# File 'lib/decisive/renderer.rb', line 2

def block
  @block
end

#recordsObject

Returns the value of attribute records

Returns:

  • (Object)

    the current value of records



2
3
4
# File 'lib/decisive/renderer.rb', line 2

def records
  @records
end

Instance Method Details

#each(&block) ⇒ Object



5
6
7
# File 'lib/decisive/renderer.rb', line 5

def each &block
  (header + body).each(&block)
end