Class: Line
- Inherits:
-
Object
- Object
- Line
- Defined in:
- lib/classes/line.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(number, content, filename) ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize(number, content, filename) ⇒ Line
Returns a new instance of Line.
4 5 6 7 8 |
# File 'lib/classes/line.rb', line 4 def initialize(number, content, filename) @number = number @content = content @filename = filename end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
2 3 4 |
# File 'lib/classes/line.rb', line 2 def content @content end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
2 3 4 |
# File 'lib/classes/line.rb', line 2 def filename @filename end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
2 3 4 |
# File 'lib/classes/line.rb', line 2 def number @number end |