Class: Sinatra::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/sinatra/resource.rb

Class Method Summary collapse

Class Method Details

.helpers(*extensions, &block) ⇒ Object



105
106
107
108
# File 'lib/sinatra/resource.rb', line 105

def helpers(*extensions, &block)
  ResourceMapper::Helpers.class_eval(&block) if block_given?
  orig_helpers *extensions, &block
end

.orig_helpersObject



104
# File 'lib/sinatra/resource.rb', line 104

alias_method :orig_helpers, :helpers