Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/extensions/string.rb
Instance Method Summary collapse
Instance Method Details
#blank? ⇒ Boolean
2 3 4 |
# File 'lib/extensions/string.rb', line 2 def blank? strip.empty? end |
#to_m ⇒ Object
6 7 8 9 |
# File 'lib/extensions/string.rb', line 6 def to_m module_name = self[0,1].upcase + self[1, self.length] Rbml.const_get(module_name) end |