Sha256: 1c110302dc812446c7f3fef90b48f860415b0d54b1f8422cbc293ef6a1291b42

Contents?: true

Size: 130 Bytes

Versions: 1

Compression:

Stored size: 130 Bytes

Contents

# frozen_string_literal: true

class String
  def is_integer
    true if Integer(self)
  rescue StandardError
    false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
new_data_magic-1.2 lib/data_magic/core_ext/string.rb