Sha256: a23e976e55236e20200aa1a8d9e18b9f5a6ba12fad905ece0091915640ca621f

Contents?: true

Size: 547 Bytes

Versions: 20

Compression:

Stored size: 547 Bytes

Contents

class Object
  # Can you safely .dup this object?
  # False for nil, false, true, symbols, numbers, and class objects; true otherwise.
  def duplicable?
    true
  end
end

class NilClass #:nodoc:
  def duplicable?
    false
  end
end

class FalseClass #:nodoc:
  def duplicable?
    false
  end
end

class TrueClass #:nodoc:
  def duplicable?
    false
  end
end

class Symbol #:nodoc:
  def duplicable?
    false
  end
end

class Numeric #:nodoc:
  def duplicable?
    false
  end
end

class Class #:nodoc:
  def duplicable?
    false
  end
end

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
grippy-doozer-0.1.0 lib/doozer/active_support/object.rb
grippy-doozer-0.1.1 lib/doozer/active_support/object.rb
grippy-doozer-0.1.2 lib/doozer/active_support/object.rb
grippy-doozer-0.1.3 lib/doozer/active_support/object.rb
grippy-doozer-0.1.4 lib/doozer/active_support/object.rb
grippy-doozer-0.1.5 lib/doozer/active_support/object.rb
doozer-0.4.4 lib/doozer/active_support/object.rb
doozer-0.4.3 lib/doozer/active_support/object.rb
doozer-0.4.2 lib/doozer/active_support/object.rb
doozer-0.4.1 lib/doozer/active_support/object.rb
doozer-0.4.0 lib/doozer/active_support/object.rb
doozer-0.3.1 lib/doozer/active_support/object.rb
doozer-0.3.0 lib/doozer/active_support/object.rb
doozer-0.2.6 lib/doozer/active_support/object.rb
doozer-0.2.5 lib/doozer/active_support/object.rb
doozer-0.2.2 lib/doozer/active_support/object.rb
doozer-0.2.1 lib/doozer/active_support/object.rb
doozer-0.2.0 lib/doozer/active_support/object.rb
activesupport-3.0.pre lib/active_support/core_ext/object/duplicable.rb
recliner-0.0.1 vendor/activesupport/lib/active_support/core_ext/object/duplicable.rb