Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/visage-app/patches.rb
Overview
extracted from Extlib. FIXME: what’s the licensing here?
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
9 10 11 |
# File 'lib/visage-app/patches.rb', line 9 def blank? strip.empty? end |
#camel_case ⇒ Object
4 5 6 7 |
# File 'lib/visage-app/patches.rb', line 4 def camel_case return self if self !~ /_/ && self =~ /[A-Z]+.*/ split('_').map{|e| e.capitalize}.join end |