Class: Mime::NullType

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


359
360
361
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 359

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

Instance Method Details

#nil?Boolean


348
349
350
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 348

def nil?
  true
end

#refObject


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

def ref; end

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


354
355
356
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 354

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