Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/q/string.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#to_pascal ⇒ Object
2 3 4 |
# File 'lib/q/string.rb', line 2 def to_pascal split(/_/).map { |string| string.capitalize }.join end |