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.1 lib/spree_core/ext/string.rb
spree_core-0.70.0 lib/spree_core/ext/string.rb
spree_core-0.60.2 lib/spree_core/ext/string.rb
spree_core-0.70.0.rc2 lib/spree_core/ext/string.rb
spree_core-0.70.RC1 lib/spree_core/ext/string.rb
spree_core-0.60.1 lib/spree_core/ext/string.rb
spree_core-0.60.0 lib/spree_core/ext/string.rb
spree_core-0.60.0.RC1 lib/spree_core/ext/string.rb
spree_core-0.50.2 lib/spree_core/ext/string.rb
spree_core-0.50.1 lib/spree_core/ext/string.rb
spree_core-0.50.0 lib/spree_core/ext/string.rb
spree_core-0.40.3 lib/spree_core/ext/string.rb
spree_core-0.40.2 lib/spree_core/ext/string.rb
spree_core-0.40.1 lib/spree_core/ext/string.rb
spree_core-0.40.0 lib/spree_core/ext/string.rb
spree_core-0.30.1 lib/spree_core/ext/string.rb
spree_core-0.30.0 lib/spree_core/ext/string.rb
spree_core-0.30.0.beta1 lib/spree_core/ext/string.rb