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)


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

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

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)

340
341
342
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 340

def nil?
  true
end

#refObject


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

def ref; end

#to_sObject


344
345
346
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 344

def to_s
  ""
end