Module: Usher::Interface::Sinatra::Extension
- Defined in:
- lib/usher/interface/sinatra.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
15 16 17 |
# File 'lib/usher/interface/sinatra.rb', line 15 def self.included(base) base.extend ClassMethods end |
.registered(app) ⇒ Object
11 12 13 |
# File 'lib/usher/interface/sinatra.rb', line 11 def self.registered(app) app.send(:include, Extension) end |
Instance Method Details
#generate(name, *params) ⇒ Object
19 20 21 |
# File 'lib/usher/interface/sinatra.rb', line 19 def generate(name, *params) self.class.generate(name, *params) end |