class Sin

Attributes

begin_char[RW]
begin_line[RW]
end_char[RW]
end_line[RW]
type[RW]

Public Class Methods

new(type, begin_line, begin_char, end_line, end_char) click to toggle source
# File lib/sin/sin.rb, line 4
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

Public Instance Methods

==(other_object) click to toggle source
# File lib/sin/sin.rb, line 16
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
ToString() click to toggle source
# File lib/sin/sin.rb, line 12
def ToString
  return "<Sin:#{@type[:name]}, Line:#{@begin_line}, Char:#{@begin_char}, Message:#{@type[:message]}, Recommendation:#{@type[:solution]}>"
end