Class: Mime::NullType

Inherits:
Object show all
Defined in:
actionpack/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)



308
309
310
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 308

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

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


295
296
297
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 295

def nil?
  true
end

#refObject



299
300
301
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 299

def ref
  nil
end

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

Returns:

  • (Boolean)


303
304
305
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 303

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