Class: Pickaxe::TestLine

Inherits:
String
  • Object
show all
Defined in:
lib/pickaxe/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from String

#color, #word_wrap

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

#indexObject

Returns the value of attribute index.



5
6
7
# File 'lib/pickaxe/test.rb', line 5

def index
  @index
end