Class: Chordsketch::ValidationError

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

Overview

Record type ValidationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line:, column:, message:) ⇒ ValidationError

Returns a new instance of ValidationError.



860
861
862
863
864
# File 'lib/chordsketch_uniffi.rb', line 860

def initialize(line:, column:, message:)
  @line = line
  @column = column
  @message = message
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



858
859
860
# File 'lib/chordsketch_uniffi.rb', line 858

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line.



858
859
860
# File 'lib/chordsketch_uniffi.rb', line 858

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message.



858
859
860
# File 'lib/chordsketch_uniffi.rb', line 858

def message
  @message
end

Instance Method Details

#==(other) ⇒ Object



866
867
868
869
870
871
872
873
874
875
876
877
878
# File 'lib/chordsketch_uniffi.rb', line 866

def ==(other)
  if @line != other.line
    return false
  end
  if @column != other.column
    return false
  end
  if @message != other.message
    return false
  end

  true
end