Method: Mail::Utilities#bracket

Defined in:
lib/mail/utilities.rb

#bracket(str) ⇒ Object

Wraps a string in angle brackets and escapes any that are in the string itself

Example:

bracket( 'This is a string' ) #=> '<This is a string>'


131
132
133
# File 'lib/mail/utilities.rb', line 131

def bracket( str )
  Utilities.bracket( str )
end