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
309
310
311
|
# File 'lib/action_dispatch/http/mime_type.rb', line 309
def method_missing(method, *args)
false if method.to_s.ends_with? '?'
end
|
Instance Method Details
#nil? ⇒ Boolean
298
299
300
|
# File 'lib/action_dispatch/http/mime_type.rb', line 298
def nil?
true
end
|
#ref ⇒ Object
302
|
# File 'lib/action_dispatch/http/mime_type.rb', line 302
def ref; end
|
#respond_to_missing?(method, include_private = false) ⇒ Boolean
304
305
306
|
# File 'lib/action_dispatch/http/mime_type.rb', line 304
def respond_to_missing?(method, include_private = false)
method.to_s.ends_with? '?'
end
|