Class: Chordsketch::TextRenderWithWarnings

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

Overview

Record type TextRenderWithWarnings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output:, warnings:) ⇒ TextRenderWithWarnings

Returns a new instance of TextRenderWithWarnings.



839
840
841
842
# File 'lib/chordsketch_uniffi.rb', line 839

def initialize(output:, warnings:)
  @output = output
  @warnings = warnings
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



837
838
839
# File 'lib/chordsketch_uniffi.rb', line 837

def output
  @output
end

#warningsObject (readonly)

Returns the value of attribute warnings.



837
838
839
# File 'lib/chordsketch_uniffi.rb', line 837

def warnings
  @warnings
end

Instance Method Details

#==(other) ⇒ Object



844
845
846
847
848
849
850
851
852
853
# File 'lib/chordsketch_uniffi.rb', line 844

def ==(other)
  if @output != other.output
    return false
  end
  if @warnings != other.warnings
    return false
  end

  true
end