Sha256: b03f522e1cf712149135e6a2f7b7438c1075200b2081717d71ad5421f6b50695
Contents?: true
Size: 663 Bytes
Versions: 18
Compression:
Stored size: 663 Bytes
Contents
class Sin attr_accessor :type,:begin_line,:begin_char,:end_line,:end_char def initialize(type, begin_line, begin_char, end_line, end_char) @type = type @begin_line = begin_line @begin_char = begin_char @end_line = end_line @end_char = end_char end def ToString return "<Sin:#{@type[:name]}, Line:#{@begin_line}, Char:#{@begin_char}, Message:#{@type[:message]}, Recommendation:#{@type[:solution]}>" end def ==(other_object) @type == other_object.type && @begin_line == other_object.begin_line && @begin_char == other_object.begin_char && @end_line == other_object.end_line && @end_char == other_object.end_char end end
Version data entries
18 entries across 18 versions & 1 rubygems