Class: FalseClass

Inherits:
Object show all
Defined in:
lib/backports/active_support/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

+false+ is not duplicable:

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

Returns:

  • (Boolean)

45
46
47
# File 'lib/backports/active_support/duplicable.rb', line 45

def duplicable?
  false
end