Module: Mina::Configuration::DSL

Included in:
Application, Backend::Local, Backend::Remote, Mina::Commands, Runner
Defined in:
lib/mina/configuration.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


7
8
9
10
11
12
13
# File 'lib/mina/configuration.rb', line 7

def self.included(base)
  [:set, :fetch, :remove, :set?, :ensure!, :reset!].each do |method|
    base.send :define_method, method do |*args,  &block|
      Configuration.instance.send(method, *args, &block)
    end
  end
end