Class: FalseClass

Inherits:
Object show all
Defined in:
lib/active_support/core_ext/duplicable.rb,
lib/active_support/core_ext/object/blank.rb,
lib/active_support/json/encoders/false_class.rb

Overview

:nodoc:

Constant Summary collapse

AS_JSON =
ActiveSupport::JSON::Variable.new('false').freeze

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



4
5
6
# File 'lib/active_support/json/encoders/false_class.rb', line 4

def as_json(options = nil) #:nodoc:
  AS_JSON
end

#blank?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/active_support/core_ext/object/blank.rb', line 47

def blank?
  true
end

#duplicable?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/active_support/core_ext/duplicable.rb', line 16

def duplicable?
  false
end