Module: Routemaster::Config::Classmethods

Included in:
Routemaster::Config
Defined in:
lib/routemaster/config.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



9
10
11
# File 'lib/routemaster/config.rb', line 9

def method_missing(method, *args, &block)
  new.send(method, *args, &block)
end

Instance Method Details

#respond_to?(method, include_all = false) ⇒ Boolean



13
14
15
# File 'lib/routemaster/config.rb', line 13

def respond_to?(method, include_all = false)
  new.respond_to?(method, include_all)
end