Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/raml/core_ext.rb

Instance Method Summary collapse

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