Class: Pickaxe::TestLine
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize(itself, index) ⇒ TestLine
constructor
A new instance of TestLine.
Methods inherited from String
Constructor Details
#initialize(itself, index) ⇒ TestLine
Returns a new instance of TestLine.
6 7 8 9 10 11 12 13 |
# File 'lib/pickaxe/test.rb', line 6 def initialize(itself, index) self.index = index + 1 if Pickaxe::WINDOWS_IT_IS replace(itself.to_ascii) else replace(itself) end end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
5 6 7 |
# File 'lib/pickaxe/test.rb', line 5 def index @index end |