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.



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

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

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



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

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#to_sObject



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

def to_s
  path.to_s
end