Class: TrueClass

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/true_class.rb

Overview

:nodoc:

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



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

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

#blank?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/active_support/core_ext/object/blank.rb', line 53

def blank?
  false
end

#duplicable?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/active_support/core_ext/duplicable.rb', line 22

def duplicable?
  false
end