Sha256: 1eab1fdfa8b7b079c1b66454ee3e3d24debf026aaff3379a7f44d5e2a8da19fd

Contents?: true

Size: 166 Bytes

Versions: 26

Compression:

Stored size: 166 Bytes

Contents

# frozen_string_literal: true

module ObjectExtensions
  refine Object do
    def integer?
      Integer(self)
    rescue StandardError
      false
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
finapps_core-6.0.2 lib/core_extensions/object/is_integer.rb
finapps_core-6.0.1 lib/core_extensions/object/is_integer.rb
finapps_core-6.0.0 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.16 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.15 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.14 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.13 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.11 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.10 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.9 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.8 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.7 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.6 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.5 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.4 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.3 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.2 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.1 lib/core_extensions/object/is_integer.rb
finapps_core-5.0.0 lib/core_extensions/object/is_integer.rb
finapps_core-4.0.7 lib/core_extensions/object/is_integer.rb