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

: ((String | Symbol) name) -> void



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

def initialize(name)
  super
  @name = name
end

Instance Method Details

#messageObject

: -> String



117
118
119
120
121
122
# File 'lib/cli/ui/frame/frame_style.rb', line 117

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