Extensions for String
Simple transformation to CamelCase from snake_case
@example
'foo_bar'.camel_case # => 'FooBar'
Compatibility with 1.9
String#escape is an extensible escaping mechanism for string. currently it suports
'<div>foo bar</div>'.esc(:html) 'foo bar'.esc(:uri) 'foo bar'.esc(:cgi)
compatibility with Ruby 1.9
convert to snake_case from CamelCase
'FooBar'.snake_case # => 'foo_bar'
Alias for unindent
Alias for unindent!
Useful for writing indented String and unindent on demand, based on the first line with indentation.
Destructive variant of undindent, replacing the String
[Validate]