Class: String

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

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object



393
394
395
396
397
398
399
400
401
# File 'lib/montoc.rb', line 393

def +(other)
	if other.kind_of? Montoc::DocBox
		new_text = self + other.text
		return new_text
	end
	result = self.dup
	result << other.to_s
	return result
end