Class: FalseClass

Inherits:
Object show all
Defined in:
lib/wedge/utilis/blank.rb,
lib/wedge/utilis/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#blank?true

false is blank:

false.blank? # => true

Returns:

  • (true)


67
68
69
# File 'lib/wedge/utilis/blank.rb', line 67

def blank?
  true
end

#duplicable?Boolean

false is not duplicable:

false.duplicable? # => false
false.dup         # => TypeError: can't dup FalseClass

Returns:

  • (Boolean)


53
54
55
# File 'lib/wedge/utilis/duplicable.rb', line 53

def duplicable?
  false
end