Class: Chordsketch::ChordDefine

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

Overview

Record type ChordDefine

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, raw:) ⇒ ChordDefine

Returns a new instance of ChordDefine.



1027
1028
1029
1030
# File 'lib/chordsketch_uniffi.rb', line 1027

def initialize(name:, raw:)
  @name = name
  @raw = raw
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



1025
1026
1027
# File 'lib/chordsketch_uniffi.rb', line 1025

def name
  @name
end

#rawObject (readonly)

Returns the value of attribute raw.



1025
1026
1027
# File 'lib/chordsketch_uniffi.rb', line 1025

def raw
  @raw
end

Instance Method Details

#==(other) ⇒ Object



1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'lib/chordsketch_uniffi.rb', line 1032

def ==(other)
  if @name != other.name
    return false
  end
  if @raw != other.raw
    return false
  end

  true
end