class Mirrors::Marker
Constants
- NO_COLUMN
- NO_LINE
- TYPE_CLASS_REFERENCE
- TYPE_FIELD_REFERENCE
- TYPE_METHOD_REFERENCE
- TYPE_PROBLEM
- TYPE_TASK
- TYPE_TEXT
Attributes
end_column[R]
file[R]
line[R]
message[R]
start_column[R]
type[R]
Public Class Methods
new(type: TYPE_TASK, message: '', file: nil, line: NO_LINE, start_column: NO_COLUMN, end_column: NO_COLUMN)
click to toggle source
# File lib/mirrors/index/marker.rb, line 15 def initialize(type: TYPE_TASK, message: '', file: nil, line: NO_LINE, start_column: NO_COLUMN, end_column: NO_COLUMN) @type = type @message = message @file = file @line = line @start_column = start_column @end_column = end_column end
Public Instance Methods
==(other)
click to toggle source
# File lib/mirrors/index/marker.rb, line 24 def ==(other) type == other.type && message == other.message && line == other.line && start_column == other.start_column && end_column == other.end_column end
eql?(other)
click to toggle source
# File lib/mirrors/index/marker.rb, line 28 def eql?(other) self == other end
hash()
click to toggle source
# File lib/mirrors/index/marker.rb, line 32 def hash [@type, @message, @line, @start_column, @end_column].hash end
hashy()
click to toggle source
# File lib/mirrors/index/marker.rb, line 36 def hashy [@type, @message, @line, @start_column, @end_column] end