Sha256: 4ed720daf6d10f5d6ed800ee1ecf68715bdc0a8e5874fa665b2493a8d877c591
Contents?: true
Size: 473 Bytes
Versions: 4
Compression:
Stored size: 473 Bytes
Contents
begin require "#{RUBY_VERSION[/\d+\.\d+/]}/bigdecimal.so" rescue LoadError require 'bigdecimal.so' end class BigDecimal module Deprecation def new(*args, **kwargs) warn "BigDecimal.new is deprecated; use BigDecimal() method instead.", uplevel: 1 super end end class << self prepend Deprecation def inherited(subclass) warn "subclassing BigDecimal will be disallowed after bigdecimal version 2.0", uplevel: 1 end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
bigdecimal-1.4.4 | lib/bigdecimal.rb |
bigdecimal-fix-1.4.4 | lib/bigdecimal.rb |
bigdecimal-1.4.3 | lib/bigdecimal.rb |
bigdecimal-1.4.3.pre.20190110 | lib/bigdecimal.rb |