Class: CodeModels::SourcePoint
- Inherits:
-
Object
- Object
- CodeModels::SourcePoint
- Defined in:
- lib/codemodels/source_info.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#line ⇒ Object
Returns the value of attribute line.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
-
#initialize(line = nil, column = nil) ⇒ SourcePoint
constructor
A new instance of SourcePoint.
Constructor Details
#initialize(line = nil, column = nil) ⇒ SourcePoint
Returns a new instance of SourcePoint.
60 61 62 63 |
# File 'lib/codemodels/source_info.rb', line 60 def initialize(line=nil,column=nil) @line = line @column = column end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
58 59 60 |
# File 'lib/codemodels/source_info.rb', line 58 def column @column end |
#line ⇒ Object
Returns the value of attribute line.
58 59 60 |
# File 'lib/codemodels/source_info.rb', line 58 def line @line end |
Instance Method Details
#==(other) ⇒ Object
69 70 71 |
# File 'lib/codemodels/source_info.rb', line 69 def ==(other) self.eql?(other) end |
#eql?(other) ⇒ Boolean
65 66 67 |
# File 'lib/codemodels/source_info.rb', line 65 def eql?(other) other.line==line && other.column==column end |