Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / logstash   deb

Repository URL to install this package:

/ opt / logstash / vendor / bundle / jruby / 1.9 / gems / extlib-0.9.16 / lib / extlib / try_dup.rb

class Object
  # Override this in a child if it cannot be dup'ed
  #
  # @return [Object]
  def try_dup
    self.dup
  end
end

class TrueClass
  def try_dup
    self
  end
end

class FalseClass
  def try_dup
    self
  end
end

class Module
  def try_dup
    self
  end
end

class NilClass
  def try_dup
    self
  end
end

class Numeric
  def try_dup
    self
  end
end

class Symbol
  def try_dup
    self
  end
end