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-4.0.6 lib/core_extensions/object/is_integer.rb
finapps_core-4.0.5 lib/core_extensions/object/is_integer.rb
finapps_core-4.0.4 lib/core_extensions/object/is_integer.rb
finapps_core-4.0.3 lib/core_extensions/object/is_integer.rb
finapps_core-4.0.2 lib/core_extensions/object/is_integer.rb
finapps_core-4.0.0 lib/core_extensions/object/is_integer.rb