Class: Enumerable::LoopMeta
- Inherits:
-
Object
- Object
- Enumerable::LoopMeta
- Defined in:
- lib/html/template.rb
Instance Attribute Summary collapse
-
#counter ⇒ Object
(also: #__counter__, #__COUNTER__)
readonly
Returns the value of attribute counter.
-
#even ⇒ Object
(also: #even?, #__even__, #__EVEN__)
readonly
Returns the value of attribute even.
-
#first ⇒ Object
(also: #first?, #__first__, #__FIRST__)
readonly
Returns the value of attribute first.
-
#index ⇒ Object
(also: #__index__, #__INDEX__)
Returns the value of attribute index.
-
#inner ⇒ Object
(also: #inner?, #__inner__, #__INNER__)
readonly
Returns the value of attribute inner.
-
#last ⇒ Object
(also: #last?, #__last__, #__LAST__)
readonly
Returns the value of attribute last.
-
#odd ⇒ Object
(also: #odd?, #__odd__, #__ODD__)
readonly
Returns the value of attribute odd.
-
#outer ⇒ Object
(also: #outer?, #__outer__, #__OUTER__)
readonly
Returns the value of attribute outer.
Instance Method Summary collapse
-
#initialize(total) ⇒ LoopMeta
constructor
A new instance of LoopMeta.
Constructor Details
#initialize(total) ⇒ LoopMeta
Returns a new instance of LoopMeta.
13 14 15 |
# File 'lib/html/template.rb', line 13 def initialize( total ) @total = total end |
Instance Attribute Details
#counter ⇒ Object (readonly) Also known as: __counter__, __COUNTER__
Returns the value of attribute counter.
49 50 51 |
# File 'lib/html/template.rb', line 49 def counter @counter end |
#even ⇒ Object (readonly) Also known as: even?, __even__, __EVEN__
Returns the value of attribute even.
51 52 53 |
# File 'lib/html/template.rb', line 51 def even @even end |
#first ⇒ Object (readonly) Also known as: first?, __first__, __FIRST__
Returns the value of attribute first.
52 53 54 |
# File 'lib/html/template.rb', line 52 def first @first end |
#index ⇒ Object Also known as: __index__, __INDEX__
Returns the value of attribute index.
48 49 50 |
# File 'lib/html/template.rb', line 48 def index @index end |
#inner ⇒ Object (readonly) Also known as: inner?, __inner__, __INNER__
Returns the value of attribute inner.
53 54 55 |
# File 'lib/html/template.rb', line 53 def inner @inner end |
#last ⇒ Object (readonly) Also known as: last?, __last__, __LAST__
Returns the value of attribute last.
55 56 57 |
# File 'lib/html/template.rb', line 55 def last @last end |
#odd ⇒ Object (readonly) Also known as: odd?, __odd__, __ODD__
Returns the value of attribute odd.
50 51 52 |
# File 'lib/html/template.rb', line 50 def odd @odd end |
#outer ⇒ Object (readonly) Also known as: outer?, __outer__, __OUTER__
Returns the value of attribute outer.
54 55 56 |
# File 'lib/html/template.rb', line 54 def outer @outer end |