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.
91 |
# File 'lib/sinatra/extension.rb', line 91 def initialize(method) @method = method end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
92 |
# File 'lib/sinatra/extension.rb', line 92 def method_missing(*) raise "not supposed to use result of #{@method}!" end |
Instance Method Details
#inspect ⇒ Object
93 |
# File 'lib/sinatra/extension.rb', line 93 def inspect; "#<#{self.class}: #{@method}>" end |