Class: Enumerable::LoopMeta

Inherits:
Object
  • Object
show all
Defined in:
lib/html/template.rb

Instance Method Summary collapse

Constructor Details

#initialize(total) ⇒ LoopMeta

Returns a new instance of LoopMeta.



13
14
15
16
# File 'lib/html/template.rb', line 13

def initialize( total )
  @total = total
  @index = 0
end

Instance Method Details

#index=(value) ⇒ Object



17
# File 'lib/html/template.rb', line 17

def index=(value) @index=value; end