Method: CLI::UI::Widgets.register
- Defined in:
- lib/cli/ui/widgets.rb
.register(name, &cb) ⇒ Object
: (String name) { -> singleton(Widgets::Base) } -> void
29 30 31 |
# File 'lib/cli/ui/widgets.rb', line 29 def register(name, &cb) MAP[name] = cb end |