Class: Nit::File

Inherits:
Object
  • Object
show all
Defined in:
lib/nit/lines.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, line) ⇒ File

Returns a new instance of File.



53
54
55
# File 'lib/nit/lines.rb', line 53

def initialize(path, line)
  @path, @line = path, line
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



57
58
59
# File 'lib/nit/lines.rb', line 57

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



57
58
59
# File 'lib/nit/lines.rb', line 57

def path
  @path
end

Instance Method Details

#to_sObject



59
60
61
# File 'lib/nit/lines.rb', line 59

def to_s
  path.to_s
end