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


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_missingObject


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

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

Instance Method Details

#inspectObject


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

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