Class: Enumerable::LoopMeta
- Inherits:
-
Object
- Object
- Enumerable::LoopMeta
- Defined in:
- lib/html/template.rb
Instance Method Summary collapse
- #index=(value) ⇒ Object
-
#initialize(total) ⇒ LoopMeta
constructor
A new instance of LoopMeta.
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 |