insults 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -8,4 +8,23 @@ A module that insults you when it feels you deserve it.
8
8
 
9
9
  == Usage
10
10
 
11
- require 'insults'
11
+ require 'insults'
12
+
13
+ == Changes
14
+
15
+ * v0.2 (2009-01-15)
16
+ * Added insults.
17
+ * Reduced code readability.
18
+ * Now 12% funnier.
19
+
20
+ * v0.1 (2009-01-14)
21
+ * Initial, insulting release
22
+
23
+ == Credits
24
+
25
+ * Delano Mandelbaum
26
+ * Alex Trebek (no, not <em>the</em> Alex Trebek)
27
+
28
+ == License
29
+
30
+ See: LICENSE.txt
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ task :default => [ :rdoc, :package ]
11
11
 
12
12
  spec = Gem::Specification.new do |s|
13
13
  s.name = "insults"
14
- s.version = "0.1"
14
+ s.version = "0.2"
15
15
  s.summary = "Insults will insult you when it feels you deserve it."
16
16
  s.description = "Insults will insult you when it feels you deserve it."
17
17
  s.author = "Delano Mandelbaum"
data/bin/example CHANGED
@@ -6,8 +6,11 @@ $:.unshift(File.join(INSULTS_HOME, 'lib')) # Make sure our local lib is first in
6
6
  require 'rubygems'
7
7
  require 'insults'
8
8
  require 'try'
9
- include Insults
9
+ #include Insults
10
+
11
+
10
12
 
11
13
  nothing
12
- Nothing
13
- Try.nothing
14
+
15
+ #Nothing
16
+ #Try.nothing
data/bin/r ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/ruby -p
2
+ $_.tr! "A-Za-z", "N-ZA-Mn-za-m";
data/lib/insults.rb CHANGED
@@ -21,50 +21,74 @@
21
21
  $KCODE = "u"
22
22
  require 'yaml'
23
23
 
24
- @@text = YAML.load(<<-text)
25
- ---
26
- :fuckups:
27
- - "Ybbx vqvbg, '%f' qbrfa'g rkvfg. "
28
- - Url fuvg svatref, gurer vf ab '%f'.
29
- :includes:
30
- - "%f qbrfa'g arrq %f, jung gur uryy ner lbh guvaxvat?"
31
- - Qb lbh ernyyl guvax lbhe %f jvyy qb nal orggre guna %f
32
- - Bxnl, fb %f vaurevgrq %f. Abj jung?
33
- text
24
+ # There are no methods or constants. All you have to do is require insults and
25
+ # it will insult you when it thinks you deserve it.
26
+ # <p>TODO: add more insults.</p>
27
+ module Insults
28
+ end
34
29
 
35
- def fuckup #:nodoc:
36
- @@text[:fuckups][rand(@@text[:fuckups].size)];
30
+ class Insult < Array #:nodoc:all
31
+ def initialize(world_of_pain)
32
+ push(YAML.load(world_of_pain)).flatten!
33
+ end
34
+ def decide
35
+ self[rand(self.length)] || decide
36
+ end
37
+ end
38
+
39
+ class String
40
+ alias :DIRTY :unpack
37
41
  end
38
- def shiton #:nodoc:
39
- @@text[:includes][rand(@@text[:includes].size)];
42
+ class Array
43
+ alias :SUCKER :inject
40
44
  end
41
45
 
42
- eval(<<-eos, binding)
46
+ everything = <<-eos
43
47
 
44
- def _(you, *are, &stupid); fuckup, you; end
45
- def ✖(w,*m); STDERR.puts w.tr("A-Za-z", "N-ZA-Mn-za-m") % m; end
46
- %w[ ⚀ ⚁ ⚂ ⚃ ⚄ ⚅ ].each do |die|
47
- self.class.send(:define_method, die) { |*m| rand >= (die.unpack('C*')[2]-127)/10; }
48
- end
49
-
50
- class Object
51
- def self.inherited(refelection)
52
- ⚃ and ✖ shiton, self, refelection unless self == Object
53
- end
54
- end
55
- # ✖(,*m)
56
- class Module
57
- define_method(:const_missing) { |you| ✖ fuckup, you }
58
- define_method(:extended) { |fucked| ⚄ and ✖ shiton, self, fucked }
59
- define_method(:included) { |it| ⚄ and ✖ shiton, self, it }
60
- end
48
+ %j[ ].rnpu qb |qvr|
49
+ frys.pynff.fraq(:qrsvar_zrgubq, qvr) { |*z| enaq >= (qvr.hacnpx('P*')[2]-127.0)/10; }
50
+ raq
61
51
 
62
- alias :method_missing :"#{"YOUR_FACE".unpack("C*").inject(0){|f,u|f|u}.chr}"
63
- eos
52
+ qrs (j,*z); FGQREE.chgf j % z; raq
53
+ qrs _(ntnva, *gboryrff, &fghcvq); ✖ shpxhc.qrpvqr, ntnva; raq
54
+
55
+ pynff Zbqhyr
56
+ qrsvar_zrgubq(:pbafg_zvffvat) { |you| ✖ shpxhc.qrpvqr, you }
57
+ qrsvar_zrgubq(:rkgraqrq) { |fucked| ⚄ naq ✖ fuvgba.qrpvqr, frys, fucked }
58
+ qrsvar_zrgubq(:vapyhqrq) { |it| ⚄ naq ✖ fuvgba.qrpvqr, frys, it }
59
+ raq
60
+
61
+ pynff Bowrpg
62
+ frys.pynff.fraq(:qrsvar_zrgubq, :vaurevgrq) { |e| ⚃ naq ✖ fuvgba.qrpvqr, frys, e hayrff frys == Bowrpg }
63
+ raq
64
+
65
+ nyvnf :zrgubq_zvffvat :"#{"YOU_ARE_A".DIRTY("C**K").SUCKER(0){|f,u|f|u}.chr}"
64
66
 
65
- # There are no methods or constants. All you have to do is require insults and
66
- # it will insult you when it thinks you deserve it.
67
- # <p>TODO: add more insults.</p>
68
- module Insults
69
- end
67
+ qrs fuvgba
68
+ Vafhyg.arj(<<-grkg)
69
+ - Jul ner lbh fhpu n qvpxyvpxre?
70
+ - Lrf V qb xabj jung lbh zrna ol "chyy erdhrfg" naq V qba'g yvxr vg.
71
+ - Lbh ybir obarfgbezf qba'g lbh.
72
+ - Fb jr obgu xabj lbh fhpx. Gur bayl dhrfgvba vf ubj bsgra.
73
+ - Abobql yvxrf lbh.
74
+ - Guvf vf n svanapvny naq phygheny qvfnfgre.
75
+ - V guvax lbh'er fghcvq, "%f" guvaxf lbh'er fghcvq, naq "%f" guvaxf lbh'er fghcvq.
76
+ grkg
77
+ raq
70
78
 
79
+ qrs shpxhc
80
+ Vafhyg.arj(<<-grkg)
81
+ - Url fuvg svatref, gurer vf ab "%f".
82
+ - Lbhe pbqr fzryyf yvxr n ont bs qvpxf. Nyfb, "%f" qbrfa'g rkvfg.
83
+ - Url qvpx juvfcrere, "%f" qbrfa'g rkvfg!
84
+ - Vg'f bxnl gb fhpx, nf ybat nf lbh'er gelvat lbhe orfg.
85
+ - Fuhg gur shpx hc Qbaal!
86
+ - Lbhe Qnq pnyyrq. Ur'f jbaqrevat jura lbh'er tbvat gb npprcg uvf chyy erdhrfg.
87
+ - Snpr!
88
+ - Url, jung'f hc lbh qvegl Zvpunry Obygba sna.
89
+ - Ab bar xabjf jung "%f" vf
90
+ grkg
91
+ raq
92
+ eos
93
+ srand
94
+ eval(everything.tr("A-Za-z", "N-ZA-Mn-za-m"), binding)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insults
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: "0.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -25,21 +25,7 @@ files:
25
25
  - Rakefile
26
26
  - bin/example
27
27
  - bin/example.bat
28
- - doc/classes
29
- - doc/classes/Insults.html
30
- - doc/classes/Try.html
31
- - doc/created.rid
32
- - doc/files
33
- - doc/files/lib
34
- - doc/files/lib/insults_rb.html
35
- - doc/files/lib/try_rb.html
36
- - doc/files/LICENSE_txt.html
37
- - doc/files/README_rdoc.html
38
- - doc/fr_class_index.html
39
- - doc/fr_file_index.html
40
- - doc/fr_method_index.html
41
- - doc/index.html
42
- - doc/rdoc-style.css
28
+ - bin/r
43
29
  - lib/insults.rb
44
30
  - lib/try.rb
45
31
  - README.rdoc
@@ -1,57 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>Module: Insults [Insults will insult you when it feels you deserve it.]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='class' id='wrapper'>
27
- <div class='header'>
28
- <h1 class='name'>
29
- <span class='type'>Module</span>
30
- Insults
31
- </h1>
32
- <ol class='paths'>
33
- <li>
34
- <a href="../files/lib/insults_rb.html">lib/insults.rb</a>
35
- </li>
36
- </ol>
37
- </div>
38
- <div id='content'>
39
- <div id='text'>
40
- <div id='description'>
41
- <p>
42
- There are no methods or constants. All you have to do is require insults
43
- and it will insult you when it thinks you deserve it. <p>TODO: add more
44
- insults.</p>
45
- </p>
46
- </div>
47
- <div id='section'>
48
- </div>
49
- </div>
50
- </div>
51
- <div id='footer-push'></div>
52
- </div>
53
- <div id='footer'>
54
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
55
- </div>
56
- </body>
57
- </html>
data/doc/classes/Try.html DELETED
@@ -1,87 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>Class: Try [Insults will insult you when it feels you deserve it.]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='class' id='wrapper'>
27
- <div class='header'>
28
- <h1 class='name'>
29
- <span class='type'>Class</span>
30
- Try
31
- </h1>
32
- <ol class='paths'>
33
- <li>
34
- <a href="../files/lib/try_rb.html">lib/try.rb</a>
35
- </li>
36
- </ol>
37
- <div class='parent'>
38
- Parent:
39
- <strong>C</strong>
40
- </div>
41
- </div>
42
- <div id='content'>
43
- <div id='text'>
44
- <div id='description'>
45
- <p>
46
- A demonstration of the magic of <a href="Insults.html">Insults</a>.
47
- </p>
48
- </div>
49
- <div id='method-list'>
50
- <h2>Methods</h2>
51
- <h3>public class</h3>
52
- <ol>
53
- <li><a href="#M000001">broken</a></li>
54
- </ol>
55
- </div>
56
- <div id='section'>
57
- <div id='methods'>
58
- <h2>Public class methods</h2>
59
- <div class='public-class method' id='method-M000001'>
60
- <a name='M000001'> </a>
61
- <div class='synopsis'>
62
- <span class='name'>broken</span>
63
- <span class='arguments'>()</span>
64
- </div>
65
- <div class='description'>
66
- <p>
67
- This broken method calls a method that doesn&#8217;t exist.
68
- </p>
69
- </div>
70
- <div class='source'>
71
- <a class='source-toggle' href='#' onclick="toggleCode('M000001-source'); return false">
72
- [show source]
73
- </a>
74
- <pre id='M000001-source'> <span class="ruby-comment cmt"># File lib/try.rb, line 13</span>&#x000A;13: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">broken</span>&#x000A;14: </pre>
75
- </div>
76
- </div>
77
- </div>
78
- </div>
79
- </div>
80
- </div>
81
- <div id='footer-push'></div>
82
- </div>
83
- <div id='footer'>
84
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
85
- </div>
86
- </body>
87
- </html>
data/doc/created.rid DELETED
@@ -1 +0,0 @@
1
- Thu, 15 Jan 2009 07:59:09 -0500
@@ -1,76 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>File: LICENSE.txt [Insults will insult you when it feels you deserve it.]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='file' id='wrapper'>
27
- <div class='header'>
28
- <h1 class='name'>LICENSE.txt</h1>
29
- <div class='paths'>
30
- LICENSE.txt
31
- </div>
32
- <div class='last-update'>
33
- Last Update:
34
- <span class='datetime'>Thu Jan 15 07:33:22 -0500 2009</span>
35
- </div>
36
- </div>
37
- <div id='content'>
38
- <div id='text'>
39
- <div id='description'>
40
- <p>
41
- Copyright &#169; 2009 Delano Mandelbaum
42
- </p>
43
- <p>
44
- Permission is hereby granted, free of charge, to any person obtaining a
45
- copy of this software and associated documentation files (the
46
- &#8220;Software&#8221;), to deal in the Software without restriction,
47
- including without limitation the rights to use, copy, modify, merge,
48
- publish, distribute, sublicense, and/or sell copies of the Software, and to
49
- permit persons to whom the Software is furnished to do so, subject to the
50
- following conditions:
51
- </p>
52
- <p>
53
- The above copyright notice and this permission notice shall be included in
54
- all copies or substantial portions of the Software.
55
- </p>
56
- <p>
57
- THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND,
58
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
60
- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
61
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
62
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
63
- USE OR OTHER DEALINGS IN THE SOFTWARE.
64
- </p>
65
- </div>
66
- <div id='section'>
67
- </div>
68
- </div>
69
- </div>
70
- <div id='footer-push'></div>
71
- </div>
72
- <div id='footer'>
73
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
74
- </div>
75
- </body>
76
- </html>
@@ -1,59 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>File: README.rdoc [Insults will insult you when it feels you deserve it.]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='file' id='wrapper'>
27
- <div class='header'>
28
- <div class='name'>README.rdoc</div>
29
- <div class='paths'>
30
- README.rdoc
31
- </div>
32
- <div class='last-update'>
33
- Last Update:
34
- <span class='datetime'>Thu Jan 15 07:57:59 -0500 2009</span>
35
- </div>
36
- </div>
37
- <div id='content'>
38
- <div id='text'>
39
- <div id='description'>
40
- <h1><a href="../classes/Insults.html">Insults</a></h1>
41
- <p>
42
- A module that insults you when it feels you deserve it.
43
- </p>
44
- <h2>Installation</h2>
45
- <pre>$ sudo gem install insults</pre>
46
- <h2>Usage</h2>
47
- <pre>require 'insults'</pre>
48
- </div>
49
- <div id='section'>
50
- </div>
51
- </div>
52
- </div>
53
- <div id='footer-push'></div>
54
- </div>
55
- <div id='footer'>
56
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
57
- </div>
58
- </body>
59
- </html>
@@ -1,84 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>File: insults.rb [Insults will insult you when it feels you deserve it.]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='file' id='wrapper'>
27
- <div class='header'>
28
- <h1 class='name'>insults.rb</h1>
29
- <div class='paths'>
30
- lib/insults.rb
31
- </div>
32
- <div class='last-update'>
33
- Last Update:
34
- <span class='datetime'>Thu Jan 15 07:33:36 -0500 2009</span>
35
- </div>
36
- </div>
37
- <div id='content'>
38
- <div id='text'>
39
- <div id='description'>
40
- <p>
41
- Copyright &#169; 2009 Delano Mandelbaum
42
- </p>
43
- <p>
44
- Permission is hereby granted, free of charge, to any person obtaining a
45
- copy of this software and associated documentation files (the
46
- &#8220;Software&#8221;), to deal in the Software without restriction,
47
- including without limitation the rights to use, copy, modify, merge,
48
- publish, distribute, sublicense, and/or sell copies of the Software, and to
49
- permit persons to whom the Software is furnished to do so, subject to the
50
- following conditions:
51
- </p>
52
- <p>
53
- The above copyright notice and this permission notice shall be included in
54
- all copies or substantial portions of the Software.
55
- </p>
56
- <p>
57
- THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND,
58
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
59
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
60
- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
61
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
62
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
63
- USE OR OTHER DEALINGS IN THE SOFTWARE.
64
- </p>
65
- </div>
66
- <div id='context'>
67
- <div id='requires'>
68
- <h2>Required files</h2>
69
- <ol>
70
- <li>yaml</li>
71
- </ol>
72
- </div>
73
- </div>
74
- <div id='section'>
75
- </div>
76
- </div>
77
- </div>
78
- <div id='footer-push'></div>
79
- </div>
80
- <div id='footer'>
81
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
82
- </div>
83
- </body>
84
- </html>
@@ -1,49 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>File: try.rb [Insults will insult you when it feels you deserve it.]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='../.././rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <script type='text/javascript'>
8
- //<![CDATA[
9
- function popupCode(url) {
10
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
11
- }
12
-
13
- function toggleCode(id) {
14
- var code = document.getElementById(id)
15
-
16
- code.style.display = code.style.display != 'block' ? 'block' : 'none'
17
- return true
18
- }
19
-
20
- // Make codeblocks hidden by default
21
- document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
22
- //]]>
23
- </script>
24
- </head>
25
- <body class='page'>
26
- <div class='file' id='wrapper'>
27
- <div class='header'>
28
- <h1 class='name'>try.rb</h1>
29
- <div class='paths'>
30
- lib/try.rb
31
- </div>
32
- <div class='last-update'>
33
- Last Update:
34
- <span class='datetime'>Thu Jan 15 07:34:57 -0500 2009</span>
35
- </div>
36
- </div>
37
- <div id='content'>
38
- <div id='text'>
39
- <div id='section'>
40
- </div>
41
- </div>
42
- </div>
43
- <div id='footer-push'></div>
44
- </div>
45
- <div id='footer'>
46
- <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
47
- </div>
48
- </body>
49
- </html>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>Classes [Insults will insult you when it feels you deserve it.]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <base target='docwin'>
8
- </head>
9
- <body class='list'>
10
- <div id='index'>
11
- <h1>Classes</h1>
12
- <ol class='classes' id='index-entries'>
13
- <li><a href="classes/Insults.html">Insults</a></li><li><a href="classes/Try.html">Try</a></li>
14
- </ol>
15
- </div>
16
- </body>
17
- </html>
@@ -1,23 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
- <html lang='en'>
3
- <head>
4
- <title>Files [Insults will insult you when it feels you deserve it.]</title>
5
- <meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
6
- <link href='rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
7
- <base target='docwin'>
8
- </head>
9
- <body class='list'>
10
- <div id='index'>
11
- <h1>Files</h1>
12
- <ol class='files' id='index-entries'>
13
- <li><a href="files/LICENSE_txt.html">LICENSE.txt</a></li>
14
- <li><a href="files/README_rdoc.html">README.rdoc</a></li>
15
- <li class='other'><a href="files/lib/insults_rb.html">lib/insults.rb</a></li>
16
- <li class='other'><a href="files/lib/try_rb.html">lib/try.rb</a></li>
17
- <li>
18
- <a class='show' href='#' onclick='this.parentNode.parentNode.className += " expanded"; this.parentNode.removeChild(this); return false'>show all</a>
19
- </li>
20
- </ol>
21
- </div>
22
- </body>
23
- </html>