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.



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

def initialize(name)
  super
  @name = name
end

Instance Method Details

#messageObject



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

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