Class: TrueClass

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

Instance Method Summary collapse

Instance Method Details

#duplicable?Boolean

+true+ is not duplicable:

true.duplicable? # => false true.dup # => TypeError: can’t dup TrueClass

Returns:

  • (Boolean)


54
55
56
# File 'lib/backports/active_support/duplicable.rb', line 54

def duplicable?
  false
end