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

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

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ InvalidFrameStyleName

Returns a new instance of InvalidFrameStyleName.


34
35
36
37
# File 'lib/cli/ui/frame/frame_style.rb', line 34

def initialize(name)
  super
  @name = name
end

Instance Method Details

#messageObject


39
40
41
42
43
44
# File 'lib/cli/ui/frame/frame_style.rb', line 39

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