Module: Sinatra::Sugar

Defined in:
lib/sinatra/sugar.rb

Defined Under Namespace

Modules: BaseMethods, ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.registered(klass) ⇒ Object



79
80
81
82
# File 'lib/sinatra/sugar.rb', line 79

def self.registered(klass)
  klass.extend ClassMethods
  klass.send :include, InstanceMethods
end

.set_app_file(klass) ⇒ Object



84
85
86
# File 'lib/sinatra/sugar.rb', line 84

def self.set_app_file(klass)
  klass.guessed_root = nil
end