Class: FalseClass

Inherits:
Object show all
Defined in:
lib/core/facets/boolean.rb,
lib/core/facets/object/dup.rb,
lib/core/facets/kernel/blank.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/core/facets/kernel/blank.rb', line 50

def blank?
  true
end

#clone?Boolean

Returns:

  • (Boolean)


45
# File 'lib/core/facets/object/dup.rb', line 45

def clone? ; false ; end

#dup!Object

Since FalseClass is immutable it cannot be duplicated. For this reason #try_dup returns self.

false.dup!  #=> false


43
# File 'lib/core/facets/object/dup.rb', line 43

def dup!   ; self  ; end

#dup?Boolean

Returns:

  • (Boolean)


44
# File 'lib/core/facets/object/dup.rb', line 44

def dup?   ; false ; end

#to_boolObject



45
46
47
# File 'lib/core/facets/boolean.rb', line 45

def to_bool
  self
end