123456789_123456789_123456789_123456789_123456789_

Class: Sinatra::Extension::DontCall

Relationships & Source Files
Inherits: BasicObject
Defined in: sinatra-contrib/lib/sinatra/extension.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(method) ⇒ DontCall

[ GitHub ]

  
# File 'sinatra-contrib/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

[ GitHub ]

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

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

Instance Method Details

#inspect

[ GitHub ]

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

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