Sha256: 906bdf32f3ecf144052b8cc8c4458e52612638ce7159e8d06b04231bec7c5ba3

Contents?: true

Size: 162 Bytes

Versions: 38

Compression:

Stored size: 162 Bytes

Contents

module SpreeCore::Ext::String
  def is_integer?
    begin
      Integer(self.to_s)
      return true
    rescue ArgumentError
      return false
    end
  end
end

Version data entries

38 entries across 38 versions & 6 rubygems

Version Path
spree_core-0.70.7 lib/spree_core/ext/string.rb
spree_core-0.70.6 lib/spree_core/ext/string.rb
apispree_core-0.0.0 lib/spree_core/ext/string.rb
My-Commerce_core-1.1.0 lib/spree_core/ext/string.rb
My-Commerce_core-1.0.0 lib/spree_core/ext/string.rb
MyCommerceapi-1.0.0 core/lib/spree_core/ext/string.rb
MyCommerce-0.0.3 core/lib/spree_core/ext/string.rb
rfcommerce_core-0.0.3 lib/spree_core/ext/string.rb
spree_core-0.60.6 lib/spree_core/ext/string.rb
spree_core-0.70.5 lib/spree_core/ext/string.rb
spree_core-0.70.4 lib/spree_core/ext/string.rb
spree_core-0.60.5 lib/spree_core/ext/string.rb
spree_core-0.70.3 lib/spree_core/ext/string.rb
spree_core-0.70.2 lib/spree_core/ext/string.rb
spree_core-0.30.2 lib/spree_core/ext/string.rb
spree_core-0.40.4 lib/spree_core/ext/string.rb
spree_core-0.50.4 lib/spree_core/ext/string.rb
spree_core-0.60.4 lib/spree_core/ext/string.rb
spree_core-0.50.3 lib/spree_core/ext/string.rb
spree_core-0.60.3 lib/spree_core/ext/string.rb