Sha256: 954f24e6137d1eaad74dddcfd4373685a7251b30d2c1210724a6730e70e28a5e

Contents?: true

Size: 236 Bytes

Versions: 22

Compression:

Stored size: 236 Bytes

Contents

class String

  def deep_const_get
    result = nil
    path = self.clone.split("::")

    path.each do |p|
      result = (result || Kernel).const_get(p)
    end
    result
  end

  def is_integer?
    self.to_i.to_s == self
  end

end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
socialization-2.0.2 lib/socialization/helpers/string.rb
socialization-2.0.1 lib/socialization/helpers/string.rb
socialization-2.0.0 lib/socialization/helpers/string.rb
socialization-1.2.3 lib/socialization/helpers/string.rb
socialization-1.2.2 lib/socialization/helpers/string.rb
socialization-1.2.1 lib/socialization/helpers/string.rb
twrk-socialization-1.2.0 lib/socialization/helpers/string.rb
twrk-socialization-0.0.1 lib/socialization/helpers/string.rb
socialization-1.2.0 lib/socialization/helpers/string.rb
socialization-cassandra-0.0.7.pre.alpha lib/socialization/helpers/string.rb
socialization-cassandra-0.0.6.pre.alpha lib/socialization/helpers/string.rb
socialization-cassandra-0.0.5.pre.alpha lib/socialization/helpers/string.rb
socialization-cassandra-0.0.4.pre.alpha lib/socialization/helpers/string.rb
socialization-cassandra-0.0.3.pre.alpha lib/socialization/helpers/string.rb
socialization-cassandra-0.0.2.pre.alpha lib/socialization/helpers/string.rb
socialization-cassandra-0.0.1.pre.alpha lib/socialization/helpers/string.rb
socialization-1.1.0 lib/socialization/helpers/string.rb
socialization-1.0.0 lib/socialization/helpers/string.rb
socialization-0.5.0.beta4 lib/socialization/helpers/string.rb
socialization-0.5.0.beta3 lib/socialization/helpers/string.rb