Sha256: f3bdb7c6b8028500774049c45fddd663071f83f2c2558276c224639a7801d4a5

Contents?: true

Size: 281 Bytes

Versions: 8

Compression:

Stored size: 281 Bytes

Contents

# extracted from Extlib.
# FIXME: what's the licensing here?
class String
  def camel_case
    return self if self !~ /_/ && self =~ /[A-Z]+.*/
    split('_').map{|e| e.capitalize}.join
  end

  def blank?
    strip.empty?
  end
end

class NilClass
  def blank?
    true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
visage-app-2.1.0 lib/visage-app/patches.rb
visage-app-2.0.5 lib/visage-app/patches.rb
visage-app-2.0.4 lib/visage-app/patches.rb
visage-app-2.0.2 lib/visage-app/patches.rb
visage-app-2.0.0 lib/visage-app/patches.rb
visage-app-1.0.0 lib/visage-app/patches.rb
visage-app-0.9.6 lib/visage-app/patches.rb
visage-app-0.9.5 lib/visage-app/patches.rb