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

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

Instance Method Summary collapse

Methods included from T::Sig

sig

Constructor Details

#initialize(handle) ⇒ InvalidGlyphHandle

Returns a new instance of InvalidGlyphHandle.



15
16
17
18
# File 'lib/cli/ui/glyph.rb', line 15

def initialize(handle)
  super
  @handle = handle
end

Instance Method Details

#messageObject



21
22
23
24
25
# File 'lib/cli/ui/glyph.rb', line 21

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