Exception: Dex::UI::Glyph::InvalidGlyphHandle

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/dex/ui/glyph.rb

Instance Method Summary collapse

Constructor Details

#initialize(handle) ⇒ InvalidGlyphHandle

Returns a new instance of InvalidGlyphHandle.



27
28
29
# File 'lib/dex/ui/glyph.rb', line 27

def initialize(handle)
  @handle = handle
end

Instance Method Details

#messageObject



31
32
33
34
35
# File 'lib/dex/ui/glyph.rb', line 31

def message
  keys = Glyph.available.join(',')
  "invalid glyph handle: #{@handle} " \
    "-- must be one of Dex::UI::Glyph.available (#{keys})"
end