Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/raml/core_ext.rb
Instance Method Summary collapse
-
#^(string) ⇒ Object
Combine with string with a newline between each.
Instance Method Details
#^(string) ⇒ Object
Combine with string with a newline between each.
Examples
"foo" ^ "bar" #=> "foo\nbar"
9 10 11 |
# File 'lib/raml/core_ext.rb', line 9 def ^(string) self + "\n" + string.to_s end |