Exception: CLI::UI::Glyph::InvalidGlyphHandle

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

Instance Method Summary collapse

Constructor Details

#initialize(handle) ⇒ InvalidGlyphHandle

Returns a new instance of InvalidGlyphHandle.



7
8
9
10
# File 'lib/cli/ui/glyph.rb', line 7

def initialize(handle)
  super
  @handle = handle
end

Instance Method Details

#messageObject



12
13
14
15
16
# File 'lib/cli/ui/glyph.rb', line 12

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