Class: TrueClass

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)

30
31
32
# File 'lib/active_support/core_ext/blank.rb', line 30

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

#to_json(options = nil) ⇒ Object

:nodoc:


2
3
4
# File 'lib/active_support/json/encoders/true_class.rb', line 2

def to_json(options = nil) #:nodoc:
  'true'
end