Module: Aboie::Configuration::Base
- Included in:
- Aboie
- Defined in:
- lib/aboie/configuration/base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
15 16 17 |
# File 'lib/aboie/configuration/base.rb', line 15 def self.extended(base) base.reset end |
Instance Method Details
#configuration ⇒ Object
11 12 13 |
# File 'lib/aboie/configuration/base.rb', line 11 def configuration @@configuration end |
#configure {|configuration| ... } ⇒ Object
7 8 9 |
# File 'lib/aboie/configuration/base.rb', line 7 def configure(&block) yield configuration end |
#reset ⇒ Object
4 5 6 |
# File 'lib/aboie/configuration/base.rb', line 4 def reset @@configuration = OpenStruct.new end |