Method: CLI::UI::Frame::FrameStyle.lookup
- Defined in:
- lib/cli/ui/frame/frame_style.rb
.lookup(name) ⇒ Object
Lookup a frame style via its name
Attributes
-
symbol- frame style name to lookup
: ((String | Symbol) name) -> FrameStyle
28 29 30 31 32 |
# File 'lib/cli/ui/frame/frame_style.rb', line 28 def lookup(name) MAP.fetch(name.to_sym).call rescue KeyError raise(InvalidFrameStyleName, name) end |