Class: Sinatra::Extension::DontCall

Inherits:
BasicObject
Defined in:
lib/sinatra/extension.rb

Instance Method Summary collapse

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_missingObject



92
# File 'lib/sinatra/extension.rb', line 92

def method_missing(*) raise "not supposed to use result of #{@method}!" end

Instance Method Details

#inspectObject



93
# File 'lib/sinatra/extension.rb', line 93

def inspect; "#<#{self.class}: #{@method}>" end