Class: Mime::NullType
- Inherits:
-
Object
show all
- Includes:
- Singleton
- Defined in:
- lib/action_dispatch/http/mime_type.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
327
328
329
|
# File 'lib/action_dispatch/http/mime_type.rb', line 327
def method_missing(method, *args)
false if method.to_s.ends_with? '?'
end
|
Instance Method Details
#nil? ⇒ Boolean
314
315
316
|
# File 'lib/action_dispatch/http/mime_type.rb', line 314
def nil?
true
end
|
#ref ⇒ Object
318
319
320
|
# File 'lib/action_dispatch/http/mime_type.rb', line 318
def ref
nil
end
|
#respond_to_missing?(method, include_private = false) ⇒ Boolean
322
323
324
|
# File 'lib/action_dispatch/http/mime_type.rb', line 322
def respond_to_missing?(method, include_private = false)
method.to_s.ends_with? '?'
end
|