Class: Ggggsss::ResultLine
- Inherits:
-
Object
- Object
- Ggggsss::ResultLine
- Defined in:
- lib/ggggsss.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#line_no ⇒ Object
readonly
Returns the value of attribute line_no.
Instance Method Summary collapse
- #==(others) ⇒ Object
-
#initialize(line_no:, line:) ⇒ ResultLine
constructor
A new instance of ResultLine.
Constructor Details
#initialize(line_no:, line:) ⇒ ResultLine
Returns a new instance of ResultLine.
68 69 70 71 |
# File 'lib/ggggsss.rb', line 68 def initialize(line_no:, line:) @line_no = line_no @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
66 67 68 |
# File 'lib/ggggsss.rb', line 66 def line @line end |
#line_no ⇒ Object (readonly)
Returns the value of attribute line_no.
66 67 68 |
# File 'lib/ggggsss.rb', line 66 def line_no @line_no end |
Instance Method Details
#==(others) ⇒ Object
73 74 75 |
# File 'lib/ggggsss.rb', line 73 def ==(others) line_no == others.line_no && line == others.line end |