Sha256: ef891d312ef238eab8a56002db28c0388fa297f0ac7fb569721e2d97ccfa411c

Contents?: true

Size: 105 Bytes

Versions: 4

Compression:

Stored size: 105 Bytes

Contents

class String
  # Poor man's constantize
  def constantize
    Stars.const_get(to_s.capitalize)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stars-0.5.3 lib/stars/core_ext/string.rb
stars-0.5.2 lib/stars/core_ext/string.rb
stars-0.5.1 lib/stars/core_ext/string.rb
stars-0.5.0 lib/stars/core_ext/string.rb