Class: Ggggsss::ResultLine

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line_no:, line:) ⇒ ResultLine

Returns a new instance of ResultLine.



67
68
69
70
# File 'lib/ggggsss.rb', line 67

def initialize(line_no:, line:)
  @line_no = line_no
  @line = line
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



65
66
67
# File 'lib/ggggsss.rb', line 65

def line
  @line
end

#line_noObject (readonly)

Returns the value of attribute line_no.



65
66
67
# File 'lib/ggggsss.rb', line 65

def line_no
  @line_no
end

Instance Method Details

#==(others) ⇒ Object



72
73
74
# File 'lib/ggggsss.rb', line 72

def ==(others)
  line_no == others.line_no && line == others.line
end