Class: Mime::NullType

Inherits:
Object
  • 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 (private)



323
324
325
# File 'lib/action_dispatch/http/mime_type.rb', line 323

def method_missing(method, *args)
  false if method.to_s.ends_with? '?'
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


312
313
314
# File 'lib/action_dispatch/http/mime_type.rb', line 312

def nil?
  true
end

#refObject



316
# File 'lib/action_dispatch/http/mime_type.rb', line 316

def ref; end

#respond_to_missing?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


318
319
320
# File 'lib/action_dispatch/http/mime_type.rb', line 318

def respond_to_missing?(method, include_private = false)
  method.to_s.ends_with? '?'
end