Class: FalseClass

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?TrueClass

False is always blank.

false.blank?      #=>  true

Returns:



70
71
72
# File 'lib/gems/extlib-0.9.9/lib/extlib/blank.rb', line 70

def blank?
  true
end

#duplicable?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/duplicable.rb', line 16

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/false_class.rb', line 2

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

#try_dupObject



8
9
10
# File 'lib/gems/extlib-0.9.9/lib/extlib/boolean.rb', line 8

def try_dup
  self
end