Class: Nit::File
- Inherits:
-
Object
- Object
- Nit::File
- Defined in:
- lib/nit/lines.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, line) ⇒ File
constructor
A new instance of File.
- #to_s ⇒ Object
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
#line ⇒ Object (readonly)
Returns the value of attribute line.
57 58 59 |
# File 'lib/nit/lines.rb', line 57 def line @line end |
#path ⇒ Object (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_s ⇒ Object
59 60 61 |
# File 'lib/nit/lines.rb', line 59 def to_s path.to_s end |