sprsquish (owner)

Revisions

gist: 117620 Download_button fork
public
Public Clone URL: git://gist.github.com/117620.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# plaintext
say 'j@d', 'this will be sent as plaintext'
 
# plaintext
say 'j@d', :plain => 'this will also be sent as plaintext'
 
# html and plaintext
say 'j@d', :html => 'sent as html',
           :plain => 'sent as plaintext'
 
# html with plaintext equivalent:
# this
#
# will
# be
#
# sent as html
say 'j@d', :html => '<p>this</p><p>will<br />be</p><p>sent as html</p>'
 
# html with no plaintext
say 'j@d', :plain => nil,
           :html => '<p>this</p><p>will<br />be</p><p>sent as html</p>'