Exception: CLI::UI::Frame::FrameStyle::InvalidFrameStyleName

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

Instance Method Summary collapse

Methods included from T::Sig

sig

Constructor Details

#initialize(name) ⇒ InvalidFrameStyleName

Returns a new instance of InvalidFrameStyleName.



102
103
104
105
# File 'lib/cli/ui/frame/frame_style.rb', line 102

def initialize(name)
  super
  @name = name
end

Instance Method Details

#messageObject



108
109
110
111
112
113
# File 'lib/cli/ui/frame/frame_style.rb', line 108

def message
  keys = FrameStyle::MAP.keys.map(&:inspect).join(', ')
  "invalid frame style: #{@name.inspect} " \
    '-- must be one of CLI::UI::Frame::FrameStyle::MAP ' \
    "(#{keys})"
end