class KDecor::Configuration
Configuration
class for KDecor
Attributes
decorators[RW]
Public Class Methods
new()
click to toggle source
# File lib/k_decor/configuration.rb, line 8 def initialize @decorators = KDecor::DecoratorHash.new end
Public Instance Methods
get_decorator(key)
click to toggle source
# File lib/k_decor/configuration.rb, line 16 def get_decorator(key) decorators[key] end
register_decorator(key, decorator)
click to toggle source
# File lib/k_decor/configuration.rb, line 12 def register_decorator(key, decorator) decorators.add(key, decorator) end