Class: Mime::NullType

Inherits:
Object
  • Object
show all
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)


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

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

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)

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

def nil?
  true
end

#refObject


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

def ref
  nil
end

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

Returns:

  • (Boolean)

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

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