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.


97
98
99
100
# File 'lib/cli/ui/frame/frame_style.rb', line 97

def initialize(name)
  super
  @name = name
end

Instance Method Details

#messageObject


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

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