Sha256: 693fccce7fd7a9479a29dc5a38376b8caa486135cba22d3979293c68a435b4f8

Contents?: true

Size: 171 Bytes

Versions: 2

Compression:

Stored size: 171 Bytes

Contents

# frozen_string_literal: true
module ObjectExtensions
  refine Object do
    def integer?
      Integer(self)
    rescue
      false
    else
      true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finapps-2.0.11 lib/core_extensions/object/is_integer.rb
finapps-2.0.10 lib/core_extensions/object/is_integer.rb