Class: TrueClass

Inherits:
Object show all
Defined in:
lib/gems/extlib-0.9.9/lib/extlib/blank.rb,
lib/gems/extlib-0.9.9/lib/extlib/boolean.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/blank.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/duplicable.rb,
lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/true_class.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?FalseClass

True is never blank.

true.blank?       #=>  false

Returns:



56
57
58
# File 'lib/gems/extlib-0.9.9/lib/extlib/blank.rb', line 56

def blank?
  false
end

#duplicable?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/duplicable.rb', line 22

def duplicable?
  false
end

#to_json(options = nil) ⇒ Object

:nodoc:



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

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

#try_dupObject



2
3
4
# File 'lib/gems/extlib-0.9.9/lib/extlib/boolean.rb', line 2

def try_dup
  self
end