Class: CliMiami
- Inherits:
-
Object
- Object
- CliMiami
- Defined in:
- lib/namespaced.rb
Overview
This is the primary initializer
Defined Under Namespace
Constant Summary collapse
- @@presets =
default presets
{ :fail => { :color => :red }, :warn => { :color => :yellow }, :success => { :color => :green } }
Class Method Summary collapse
-
.presets ⇒ Object
Returns all presets.
-
.set_preset(type, options) ⇒ Object
Create a new custom preset.
Class Method Details
.presets ⇒ Object
Returns all presets
21 22 23 |
# File 'lib/namespaced.rb', line 21 def self.presets @@presets end |
.set_preset(type, options) ⇒ Object
Create a new custom preset
26 27 28 29 |
# File 'lib/namespaced.rb', line 26 def self.set_preset type, raise 'Preset must be a hash of options' unless .is_a? Hash @@presets[type] = end |