Class: Utusemi::Configuration
- Inherits:
-
Object
- Object
- Utusemi::Configuration
- Defined in:
- lib/utusemi/configuration.rb
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #map(name, *args, &block) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 |
# File 'lib/utusemi/configuration.rb', line 3 def initialize @maps ||= {} end |
Instance Method Details
#map(name, *args, &block) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/utusemi/configuration.rb', line 7 def map(name, *args, &block) name = (name || '').to_sym return map_get(name, *args) unless block_given? = args.shift if args.first.is_a? Hash map_set(name, , &block) end |