Class: Dolt::Sinatra::Actions
- Inherits:
-
Object
- Object
- Dolt::Sinatra::Actions
- Defined in:
- lib/dolt/sinatra/actions.rb
Instance Method Summary collapse
-
#initialize(app, lookup, renderer) ⇒ Actions
constructor
A new instance of Actions.
- #method_missing(method, *args, &block) ⇒ Object
- #respond_to?(method) ⇒ Boolean
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/dolt/sinatra/actions.rb', line 35 def method_missing(method, *args, &block) if dolt.respond_to?(method) return respond(dolt.send(method, *args, &block)) end super end |
Instance Method Details
#respond_to?(method) ⇒ Boolean
31 32 33 |
# File 'lib/dolt/sinatra/actions.rb', line 31 def respond_to?(method) dolt.respond_to?(method) end |