Sha256: b2e4338809d7aa8487c6bc333824727351f5d8c7b6e1c7707a00c8a4b94a612b

Contents?: true

Size: 152 Bytes

Versions: 6

Compression:

Stored size: 152 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
finapps_core-3.0.6 lib/core_extensions/object/is_integer.rb
finapps_core-3.0.5 lib/core_extensions/object/is_integer.rb
finapps_core-3.0.3 lib/core_extensions/object/is_integer.rb
finapps_core-3.0.1 lib/core_extensions/object/is_integer.rb
finapps_core-2.1.2 lib/core_extensions/object/is_integer.rb
finapps_core-2.1.1 lib/core_extensions/object/is_integer.rb