class Jan::Symbol::Band

Attributes

color[R]
width[R]

Public Class Methods

new(width, color:) click to toggle source

@param width [Integer] @param color [String]

# File lib/jan/symbol/band.rb, line 9
def initialize(width, color:)
  @width = width
  @color = color
end

Public Instance Methods

==(other) click to toggle source

@param other [Jan::Symbol::Band] @return [boolean]

# File lib/jan/symbol/band.rb, line 18
def ==(other)
  self.width == other.width && self.color == other.color
end