Class: Sinatra::Extension::DontCall
- Inherits:
- BasicObject
- Defined in:
- lib/sinatra/extension.rb
Instance Method Summary collapse
-
#initialize(method) ⇒ DontCall
constructor
A new instance of DontCall.
- #inspect ⇒ Object
- #method_missing ⇒ Object
Constructor Details
#initialize(method) ⇒ DontCall
Returns a new instance of DontCall.
90 |
# File 'lib/sinatra/extension.rb', line 90 def initialize(method) @method = method end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
91 |
# File 'lib/sinatra/extension.rb', line 91 def method_missing(*) fail "not supposed to use result of #@method!" end |
Instance Method Details
#inspect ⇒ Object
92 |
# File 'lib/sinatra/extension.rb', line 92 def inspect; "#<#{self.class}: #{@method}>" end |