context 0.0.16 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. data/AUTHORS +1 -0
  2. data/COPYING +679 -0
  3. data/README +188 -0
  4. data/Rakefile.rb +64 -18
  5. data/lib/Context/Bridge.rb +7 -6
  6. data/lib/Context/Context.rb +14 -35
  7. data/lib/Context/Gtk/Widget.rb +139 -33
  8. data/lib/Context/Log.rb +10 -0
  9. data/lib/Context/Publisher.rb +108 -0
  10. data/lib/Context/Spec.rb +8 -0
  11. data/lib/Context/Version.rb +1 -1
  12. data/lib/Context/View.rb +16 -15
  13. data/lib/Context/Views/Gtk/PageView.rb +3 -23
  14. data/lib/Context/Views/Gtk/Widgets/MainWindow.rb +70 -0
  15. data/lib/Context/Views/Gtk/Widgets/VBox.rb +29 -0
  16. data/lib/Context/Widget.rb +18 -27
  17. data/spec/Context/Bridge_spec.rb +19 -20
  18. data/spec/Context/Context_spec.rb +77 -63
  19. data/spec/Context/Gtk/Widget_spec.rb +23 -23
  20. data/spec/Context/Publisher_spec.rb +53 -0
  21. data/spec/Context/View_spec.rb +10 -14
  22. data/spec/Context/Views/Gtk/PageView_spec.rb +25 -9
  23. data/spec/Context/require_all_spec.rb +14 -7
  24. data/test_results.html +84 -121
  25. metadata +74 -128
  26. data/coverage/-usr-local-lib-site_ruby-1_8-atk_rb.html +0 -612
  27. data/coverage/-usr-local-lib-site_ruby-1_8-gdk_pixbuf2_rb.html +0 -637
  28. data/coverage/-usr-local-lib-site_ruby-1_8-glib2_rb.html +0 -829
  29. data/coverage/-usr-local-lib-site_ruby-1_8-gtk2-base_rb.html +0 -709
  30. data/coverage/-usr-local-lib-site_ruby-1_8-gtk2_rb.html +0 -623
  31. data/coverage/-usr-local-lib-site_ruby-1_8-pango_rb.html +0 -665
  32. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-color_rb.html +0 -865
  33. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-colors_rb.html +0 -1266
  34. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-constants_rb.html +0 -632
  35. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-blur_rb.html +0 -655
  36. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-circle_rb.html +0 -619
  37. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-color_rb.html +0 -621
  38. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-path_rb.html +0 -726
  39. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-rectangle_rb.html +0 -643
  40. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-triangle_rb.html +0 -622
  41. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context_rb.html +0 -639
  42. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-paper_rb.html +0 -793
  43. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-papers_rb.html +0 -651
  44. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-path_rb.html +0 -625
  45. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-point_rb.html +0 -617
  46. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo_rb.html +0 -756
  47. data/coverage/index.html +0 -1170
  48. data/coverage/lib-Context-Bridge_rb.html +0 -673
  49. data/coverage/lib-Context-Context_rb.html +0 -756
  50. data/coverage/lib-Context-EnumeratedType_rb.html +0 -661
  51. data/coverage/lib-Context-ExecutionProxy_rb.html +0 -671
  52. data/coverage/lib-Context-Gtk-App_rb.html +0 -638
  53. data/coverage/lib-Context-Gtk-Key_rb.html +0 -664
  54. data/coverage/lib-Context-Gtk-Widget_rb.html +0 -667
  55. data/coverage/lib-Context-KeyAssignment_rb.html +0 -641
  56. data/coverage/lib-Context-KeyMap_rb.html +0 -653
  57. data/coverage/lib-Context-Key_rb.html +0 -667
  58. data/coverage/lib-Context-View_rb.html +0 -659
  59. data/coverage/lib-Context-Views-Gtk-PageView_rb.html +0 -660
  60. data/coverage/lib-Context-Views-PageView_rb.html +0 -627
  61. data/coverage/lib-Context-Widget_rb.html +0 -650
  62. data/coverage/lib-Context-require_all_rb.html +0 -623
  63. data/doc/classes/Context.html +0 -174
  64. data/doc/classes/Context/Bridge.html +0 -296
  65. data/doc/classes/Context/Context.html +0 -564
  66. data/doc/classes/Context/EnumeratedType.html +0 -283
  67. data/doc/classes/Context/ExecutionProxy.html +0 -228
  68. data/doc/classes/Context/Gtk.html +0 -126
  69. data/doc/classes/Context/Gtk/App.html +0 -217
  70. data/doc/classes/Context/Gtk/Key.html +0 -292
  71. data/doc/classes/Context/Gtk/PageView.html +0 -245
  72. data/doc/classes/Context/Gtk/PageView/MainWindow.html +0 -200
  73. data/doc/classes/Context/Gtk/Widget.html +0 -311
  74. data/doc/classes/Context/Key.html +0 -305
  75. data/doc/classes/Context/Key/Modifier.html +0 -117
  76. data/doc/classes/Context/KeyAssignment.html +0 -234
  77. data/doc/classes/Context/KeyMap.html +0 -273
  78. data/doc/classes/Context/PageView.html +0 -180
  79. data/doc/classes/Context/View.html +0 -334
  80. data/doc/classes/Context/Widget.html +0 -298
  81. data/doc/classes/Kernel.html +0 -148
  82. data/doc/classes/Object.html +0 -196
  83. data/doc/created.rid +0 -1
  84. data/doc/files/lib/Context/Bridge_rb.html +0 -108
  85. data/doc/files/lib/Context/Context_rb.html +0 -109
  86. data/doc/files/lib/Context/EnumeratedType_rb.html +0 -101
  87. data/doc/files/lib/Context/ExecutionProxy_rb.html +0 -101
  88. data/doc/files/lib/Context/Gtk/App_rb.html +0 -110
  89. data/doc/files/lib/Context/Gtk/Key_rb.html +0 -109
  90. data/doc/files/lib/Context/Gtk/Widget_rb.html +0 -109
  91. data/doc/files/lib/Context/KeyAssignment_rb.html +0 -108
  92. data/doc/files/lib/Context/KeyMap_rb.html +0 -109
  93. data/doc/files/lib/Context/Key_rb.html +0 -108
  94. data/doc/files/lib/Context/Version_rb.html +0 -101
  95. data/doc/files/lib/Context/View_rb.html +0 -101
  96. data/doc/files/lib/Context/Views/Gtk/PageView_rb.html +0 -111
  97. data/doc/files/lib/Context/Views/PageView_rb.html +0 -108
  98. data/doc/files/lib/Context/Widget_rb.html +0 -101
  99. data/doc/files/lib/Context/require_all_rb.html +0 -101
  100. data/doc/fr_class_index.html +0 -46
  101. data/doc/fr_file_index.html +0 -42
  102. data/doc/fr_method_index.html +0 -103
  103. data/doc/index.html +0 -24
  104. data/doc/rdoc-style.css +0 -208
  105. data/lib/Context/EnumeratedType.rb +0 -51
  106. data/lib/Context/ExecutionProxy.rb +0 -61
  107. data/lib/Context/Gtk/Key.rb +0 -54
  108. data/lib/Context/Key.rb +0 -57
  109. data/lib/Context/KeyAssignment.rb +0 -31
  110. data/lib/Context/KeyMap.rb +0 -43
  111. data/spec/Context/EnumeratedType_spec.rb +0 -51
  112. data/spec/Context/ExecutionProxy_spec.rb +0 -28
  113. data/spec/Context/Gtk/Key_spec.rb +0 -45
  114. data/spec/Context/KeyAssignment_spec.rb +0 -26
  115. data/spec/Context/KeyMap_spec.rb +0 -64
  116. data/spec/Context/Key_spec.rb +0 -22
  117. data/spec/Context/Widget_spec.rb +0 -15
@@ -1,46 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Classes
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Classes</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Classes</h1>
22
- <div id="index-entries">
23
- <a href="classes/Context.html">Context</a><br />
24
- <a href="classes/Context/Bridge.html">Context::Bridge</a><br />
25
- <a href="classes/Context/Context.html">Context::Context</a><br />
26
- <a href="classes/Context/EnumeratedType.html">Context::EnumeratedType</a><br />
27
- <a href="classes/Context/ExecutionProxy.html">Context::ExecutionProxy</a><br />
28
- <a href="classes/Context/Gtk.html">Context::Gtk</a><br />
29
- <a href="classes/Context/Gtk/App.html">Context::Gtk::App</a><br />
30
- <a href="classes/Context/Gtk/Key.html">Context::Gtk::Key</a><br />
31
- <a href="classes/Context/Gtk/PageView.html">Context::Gtk::PageView</a><br />
32
- <a href="classes/Context/Gtk/PageView/MainWindow.html">Context::Gtk::PageView::MainWindow</a><br />
33
- <a href="classes/Context/Gtk/Widget.html">Context::Gtk::Widget</a><br />
34
- <a href="classes/Context/Key.html">Context::Key</a><br />
35
- <a href="classes/Context/Key/Modifier.html">Context::Key::Modifier</a><br />
36
- <a href="classes/Context/KeyAssignment.html">Context::KeyAssignment</a><br />
37
- <a href="classes/Context/KeyMap.html">Context::KeyMap</a><br />
38
- <a href="classes/Context/PageView.html">Context::PageView</a><br />
39
- <a href="classes/Context/View.html">Context::View</a><br />
40
- <a href="classes/Context/Widget.html">Context::Widget</a><br />
41
- <a href="classes/Kernel.html">Kernel</a><br />
42
- <a href="classes/Object.html">Object</a><br />
43
- </div>
44
- </div>
45
- </body>
46
- </html>
@@ -1,42 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Files
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Files</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Files</h1>
22
- <div id="index-entries">
23
- <a href="files/lib/Context/Bridge_rb.html">lib/Context/Bridge.rb</a><br />
24
- <a href="files/lib/Context/Context_rb.html">lib/Context/Context.rb</a><br />
25
- <a href="files/lib/Context/EnumeratedType_rb.html">lib/Context/EnumeratedType.rb</a><br />
26
- <a href="files/lib/Context/ExecutionProxy_rb.html">lib/Context/ExecutionProxy.rb</a><br />
27
- <a href="files/lib/Context/Gtk/App_rb.html">lib/Context/Gtk/App.rb</a><br />
28
- <a href="files/lib/Context/Gtk/Key_rb.html">lib/Context/Gtk/Key.rb</a><br />
29
- <a href="files/lib/Context/Gtk/Widget_rb.html">lib/Context/Gtk/Widget.rb</a><br />
30
- <a href="files/lib/Context/Key_rb.html">lib/Context/Key.rb</a><br />
31
- <a href="files/lib/Context/KeyAssignment_rb.html">lib/Context/KeyAssignment.rb</a><br />
32
- <a href="files/lib/Context/KeyMap_rb.html">lib/Context/KeyMap.rb</a><br />
33
- <a href="files/lib/Context/Version_rb.html">lib/Context/Version.rb</a><br />
34
- <a href="files/lib/Context/View_rb.html">lib/Context/View.rb</a><br />
35
- <a href="files/lib/Context/Views/Gtk/PageView_rb.html">lib/Context/Views/Gtk/PageView.rb</a><br />
36
- <a href="files/lib/Context/Views/PageView_rb.html">lib/Context/Views/PageView.rb</a><br />
37
- <a href="files/lib/Context/Widget_rb.html">lib/Context/Widget.rb</a><br />
38
- <a href="files/lib/Context/require_all_rb.html">lib/Context/require_all.rb</a><br />
39
- </div>
40
- </div>
41
- </body>
42
- </html>
@@ -1,103 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Methods
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Methods</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Methods</h1>
22
- <div id="index-entries">
23
- <a href="classes/Context/Widget.html#M000057">add (Context::Widget)</a><br />
24
- <a href="classes/Context/KeyMap.html#M000050">add (Context::KeyMap)</a><br />
25
- <a href="classes/Context/EnumeratedType.html#M000030">add (Context::EnumeratedType)</a><br />
26
- <a href="classes/Context/Gtk/Widget.html#M000016">add (Context::Gtk::Widget)</a><br />
27
- <a href="classes/Context/Context.html#M000039">addView (Context::Context)</a><br />
28
- <a href="classes/Context/View.html#M000066">addView (Context::View)</a><br />
29
- <a href="classes/Context/Widget.html#M000055">addedTo (Context::Widget)</a><br />
30
- <a href="classes/Context/Bridge.html#M000063">classExists? (Context::Bridge)</a><br />
31
- <a href="classes/Context/View.html#M000069">close (Context::View)</a><br />
32
- <a href="classes/Context/PageView.html#M000025">close (Context::PageView)</a><br />
33
- <a href="classes/Context/Gtk/PageView/MainWindow.html#M000012">closeView (Context::Gtk::PageView::MainWindow)</a><br />
34
- <a href="classes/Context/Gtk/PageView/MainWindow.html#M000011">connectSignals (Context::Gtk::PageView::MainWindow)</a><br />
35
- <a href="classes/Context/Gtk/Key.html#M000022">createFromGtkEvent (Context::Gtk::Key)</a><br />
36
- <a href="classes/Context/Gtk/Key.html#M000023">createGtkEvent (Context::Gtk::Key)</a><br />
37
- <a href="classes/Context/Context.html#M000035">createViews (Context::Context)</a><br />
38
- <a href="classes/Context/Context.html#M000038">destroyViews (Context::Context)</a><br />
39
- <a href="classes/Context/Gtk/PageView.html#M000009">emitDestroyEvent (Context::Gtk::PageView)</a><br />
40
- <a href="classes/Context/Gtk/App.html#M000004">enter (Context::Gtk::App)</a><br />
41
- <a href="classes/Context/Context.html#M000040">enter (Context::Context)</a><br />
42
- <a href="classes/Context/Widget.html#M000059">eql? (Context::Widget)</a><br />
43
- <a href="classes/Context/Key.html#M000074">eql? (Context::Key)</a><br />
44
- <a href="classes/Context/Bridge.html#M000062">evalClass (Context::Bridge)</a><br />
45
- <a href="classes/Object.html#M000001">execute_if (Object)</a><br />
46
- <a href="classes/Context/ExecutionProxy.html#M000027">execute_if_you_can (Context::ExecutionProxy)</a><br />
47
- <a href="classes/Context/Context.html#M000042">exit (Context::Context)</a><br />
48
- <a href="classes/Context/Gtk/App.html#M000005">exit (Context::Gtk::App)</a><br />
49
- <a href="classes/Context/KeyMap.html#M000051">findKey (Context::KeyMap)</a><br />
50
- <a href="classes/Context/Gtk/Key.html#M000020">getCharacterFromEvent (Context::Gtk::Key)</a><br />
51
- <a href="classes/Context/Gtk/Key.html#M000021">getGtkKeyval (Context::Gtk::Key)</a><br />
52
- <a href="classes/Context/Gtk/Key.html#M000019">getGtkState (Context::Gtk::Key)</a><br />
53
- <a href="classes/Context/Context.html#M000044">getKeyBinding (Context::Context)</a><br />
54
- <a href="classes/Context/Gtk/Key.html#M000018">getModifierFromEvent (Context::Gtk::Key)</a><br />
55
- <a href="classes/Context/View.html#M000070">getWidget (Context::View)</a><br />
56
- <a href="classes/Context/Gtk/PageView.html#M000008">getWidget (Context::Gtk::PageView)</a><br />
57
- <a href="classes/Context/KeyMap.html#M000052">handles? (Context::KeyMap)</a><br />
58
- <a href="classes/Context/KeyAssignment.html#M000047">handles? (Context::KeyAssignment)</a><br />
59
- <a href="classes/Context/Key.html#M000075">hash (Context::Key)</a><br />
60
- <a href="classes/Context/Gtk/Widget.html#M000013">inTests (Context::Gtk::Widget)</a><br />
61
- <a href="classes/Context/Gtk/Widget.html#M000015">isAMainWindow (Context::Gtk::Widget)</a><br />
62
- <a href="classes/Context/Context.html#M000041">isEntered? (Context::Context)</a><br />
63
- <a href="classes/Context/Bridge.html#M000064">method_missing (Context::Bridge)</a><br />
64
- <a href="classes/Context/EnumeratedType.html#M000033">method_missing (Context::EnumeratedType)</a><br />
65
- <a href="classes/Context/ExecutionProxy.html#M000028">method_missing (Context::ExecutionProxy)</a><br />
66
- <a href="classes/Context/Context.html#M000034">new (Context::Context)</a><br />
67
- <a href="classes/Context/Key.html#M000072">new (Context::Key)</a><br />
68
- <a href="classes/Context/KeyAssignment.html#M000046">new (Context::KeyAssignment)</a><br />
69
- <a href="classes/Context/Bridge.html#M000060">new (Context::Bridge)</a><br />
70
- <a href="classes/Context/PageView.html#M000024">new (Context::PageView)</a><br />
71
- <a href="classes/Context/Gtk/PageView.html#M000006">new (Context::Gtk::PageView)</a><br />
72
- <a href="classes/Context/View.html#M000065">new (Context::View)</a><br />
73
- <a href="classes/Context/Gtk/PageView/MainWindow.html#M000010">new (Context::Gtk::PageView::MainWindow)</a><br />
74
- <a href="classes/Context/ExecutionProxy.html#M000026">new (Context::ExecutionProxy)</a><br />
75
- <a href="classes/Context/Gtk/App.html#M000003">new (Context::Gtk::App)</a><br />
76
- <a href="classes/Context/Widget.html#M000054">new (Context::Widget)</a><br />
77
- <a href="classes/Context/Gtk/Widget.html#M000014">new (Context::Gtk::Widget)</a><br />
78
- <a href="classes/Context/KeyMap.html#M000049">new (Context::KeyMap)</a><br />
79
- <a href="classes/Context/View.html#M000071">notifyKey (Context::View)</a><br />
80
- <a href="classes/Context/Context.html#M000045">notifyKey (Context::Context)</a><br />
81
- <a href="classes/Context/Key.html#M000073">null (Context::Key)</a><br />
82
- <a href="classes/Context/Key.html#M000076">null? (Context::Key)</a><br />
83
- <a href="classes/Context/Gtk/PageView.html#M000007">open (Context::Gtk::PageView)</a><br />
84
- <a href="classes/Context/View.html#M000068">open (Context::View)</a><br />
85
- <a href="classes/Context/Context.html#M000037">peekAtView (Context::Context)</a><br />
86
- <a href="classes/Context/KeyMap.html#M000053">press (Context::KeyMap)</a><br />
87
- <a href="classes/Context/Gtk/Widget.html#M000017">remove (Context::Gtk::Widget)</a><br />
88
- <a href="classes/Context/Widget.html#M000058">remove (Context::Widget)</a><br />
89
- <a href="classes/Context/View.html#M000067">removeView (Context::View)</a><br />
90
- <a href="classes/Context/Widget.html#M000056">removedFrom (Context::Widget)</a><br />
91
- <a href="classes/Kernel.html#M000077">require_all (Kernel)</a><br />
92
- <a href="classes/Context/EnumeratedType.html#M000032">responds_to? (Context::EnumeratedType)</a><br />
93
- <a href="classes/Context/Context.html#M000043">setKeyBinding (Context::Context)</a><br />
94
- <a href="classes/Context/Context.html#M000036">setupViews (Context::Context)</a><br />
95
- <a href="classes/Context/EnumeratedType.html#M000029">start_at (Context::EnumeratedType)</a><br />
96
- <a href="classes/Context/Bridge.html#M000061">symbolToS (Context::Bridge)</a><br />
97
- <a href="classes/Context/EnumeratedType.html#M000031">symbols (Context::EnumeratedType)</a><br />
98
- <a href="classes/Context/KeyAssignment.html#M000048">try (Context::KeyAssignment)</a><br />
99
- <a href="classes/Object.html#M000002">unless_nil (Object)</a><br />
100
- </div>
101
- </div>
102
- </body>
103
- </html>
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
5
-
6
- <!--
7
-
8
- Context -- Contextual UI Framework
9
-
10
- -->
11
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12
- <head>
13
- <title>Context -- Contextual UI Framework</title>
14
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
- </head>
16
- <frameset rows="20%, 80%">
17
- <frameset cols="25%,35%,45%">
18
- <frame src="fr_file_index.html" title="Files" name="Files" />
19
- <frame src="fr_class_index.html" name="Classes" />
20
- <frame src="fr_method_index.html" name="Methods" />
21
- </frameset>
22
- <frame src="classes/Context.html" name="docwin" />
23
- </frameset>
24
- </html>
@@ -1,208 +0,0 @@
1
-
2
- body {
3
- font-family: Verdana,Arial,Helvetica,sans-serif;
4
- font-size: 90%;
5
- margin: 0;
6
- margin-left: 40px;
7
- padding: 0;
8
- background: white;
9
- }
10
-
11
- h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
12
- h1 { font-size: 150%; }
13
- h2,h3,h4 { margin-top: 1em; }
14
-
15
- a { background: #eef; color: #039; text-decoration: none; }
16
- a:hover { background: #039; color: #eef; }
17
-
18
- /* Override the base stylesheet's Anchor inside a table cell */
19
- td > a {
20
- background: transparent;
21
- color: #039;
22
- text-decoration: none;
23
- }
24
-
25
- /* and inside a section title */
26
- .section-title > a {
27
- background: transparent;
28
- color: #eee;
29
- text-decoration: none;
30
- }
31
-
32
- /* === Structural elements =================================== */
33
-
34
- div#index {
35
- margin: 0;
36
- margin-left: -40px;
37
- padding: 0;
38
- font-size: 90%;
39
- }
40
-
41
-
42
- div#index a {
43
- margin-left: 0.7em;
44
- }
45
-
46
- div#index .section-bar {
47
- margin-left: 0px;
48
- padding-left: 0.7em;
49
- background: #ccc;
50
- font-size: small;
51
- }
52
-
53
-
54
- div#classHeader, div#fileHeader {
55
- width: auto;
56
- color: white;
57
- padding: 0.5em 1.5em 0.5em 1.5em;
58
- margin: 0;
59
- margin-left: -40px;
60
- border-bottom: 3px solid #006;
61
- }
62
-
63
- div#classHeader a, div#fileHeader a {
64
- background: inherit;
65
- color: white;
66
- }
67
-
68
- div#classHeader td, div#fileHeader td {
69
- background: inherit;
70
- color: white;
71
- }
72
-
73
-
74
- div#fileHeader {
75
- background: #057;
76
- }
77
-
78
- div#classHeader {
79
- background: #048;
80
- }
81
-
82
-
83
- .class-name-in-header {
84
- font-size: 180%;
85
- font-weight: bold;
86
- }
87
-
88
-
89
- div#bodyContent {
90
- padding: 0 1.5em 0 1.5em;
91
- }
92
-
93
- div#description {
94
- padding: 0.5em 1.5em;
95
- background: #efefef;
96
- border: 1px dotted #999;
97
- }
98
-
99
- div#description h1,h2,h3,h4,h5,h6 {
100
- color: #125;;
101
- background: transparent;
102
- }
103
-
104
- div#validator-badges {
105
- text-align: center;
106
- }
107
- div#validator-badges img { border: 0; }
108
-
109
- div#copyright {
110
- color: #333;
111
- background: #efefef;
112
- font: 0.75em sans-serif;
113
- margin-top: 5em;
114
- margin-bottom: 0;
115
- padding: 0.5em 2em;
116
- }
117
-
118
-
119
- /* === Classes =================================== */
120
-
121
- table.header-table {
122
- color: white;
123
- font-size: small;
124
- }
125
-
126
- .type-note {
127
- font-size: small;
128
- color: #DEDEDE;
129
- }
130
-
131
- .xxsection-bar {
132
- background: #eee;
133
- color: #333;
134
- padding: 3px;
135
- }
136
-
137
- .section-bar {
138
- color: #333;
139
- border-bottom: 1px solid #999;
140
- margin-left: -20px;
141
- }
142
-
143
-
144
- .section-title {
145
- background: #79a;
146
- color: #eee;
147
- padding: 3px;
148
- margin-top: 2em;
149
- margin-left: -30px;
150
- border: 1px solid #999;
151
- }
152
-
153
- .top-aligned-row { vertical-align: top }
154
- .bottom-aligned-row { vertical-align: bottom }
155
-
156
- /* --- Context section classes ----------------------- */
157
-
158
- .context-row { }
159
- .context-item-name { font-family: monospace; font-weight: bold; color: black; }
160
- .context-item-value { font-size: small; color: #448; }
161
- .context-item-desc { color: #333; padding-left: 2em; }
162
-
163
- /* --- Method classes -------------------------- */
164
- .method-detail {
165
- background: #efefef;
166
- padding: 0;
167
- margin-top: 0.5em;
168
- margin-bottom: 1em;
169
- border: 1px dotted #ccc;
170
- }
171
- .method-heading {
172
- color: black;
173
- background: #ccc;
174
- border-bottom: 1px solid #666;
175
- padding: 0.2em 0.5em 0 0.5em;
176
- }
177
- .method-signature { color: black; background: inherit; }
178
- .method-name { font-weight: bold; }
179
- .method-args { font-style: italic; }
180
- .method-description { padding: 0 0.5em 0 0.5em; }
181
-
182
- /* --- Source code sections -------------------- */
183
-
184
- a.source-toggle { font-size: 90%; }
185
- div.method-source-code {
186
- background: #262626;
187
- color: #ffdead;
188
- margin: 1em;
189
- padding: 0.5em;
190
- border: 1px dashed #999;
191
- overflow: hidden;
192
- }
193
-
194
- div.method-source-code pre { color: #ffdead; overflow: hidden; }
195
-
196
- /* --- Ruby keyword styles --------------------- */
197
-
198
- .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
199
-
200
- .ruby-constant { color: #7fffd4; background: transparent; }
201
- .ruby-keyword { color: #00ffff; background: transparent; }
202
- .ruby-ivar { color: #eedd82; background: transparent; }
203
- .ruby-operator { color: #00ffee; background: transparent; }
204
- .ruby-identifier { color: #ffdead; background: transparent; }
205
- .ruby-node { color: #ffa07a; background: transparent; }
206
- .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
207
- .ruby-regexp { color: #ffa07a; background: transparent; }
208
- .ruby-value { color: #7fffd4; background: transparent; }
@@ -1,51 +0,0 @@
1
- module Context
2
-
3
- # Class that holds a series of constants that act as an
4
- # enumerated type. The first ID added to the type is
5
- # set to the value 0 (or at the value specified in start_at).
6
- # each subsequent ID added to the type is automatically
7
- # incremented
8
- class EnumeratedType
9
- # Use singleton class to define class methods
10
- class << self
11
- # Set the value that the first ID should start at.
12
- # Note: This must called *before* add() or symbols()
13
- def start_at(n)
14
- @nextValue = n
15
- end
16
-
17
- # Add a single ID to the enumerated type
18
- # Usually called like:
19
- # add MY_ID
20
- def add(id)
21
- @nextValue ||= 0
22
- const_set(id, @nextValue)
23
- @nextValue += 1
24
- end
25
-
26
- # Add a group of IDs to the enumerated type.
27
- # This method takes an array.
28
- # Usually called like:
29
- # symbols [ID1, ID2, ID3,...]
30
- def symbols(array)
31
- array.each do |id|
32
- add(id)
33
- end
34
- end
35
-
36
- # Returns true if the ID has been defined in the enumerated type.
37
- def responds_to?(id)
38
- name = id.id2name
39
- return true if self.const_defined?(name)
40
- end
41
-
42
- # Retrieve the value of the ID
43
- # If the ID is defined, return it's value.
44
- def method_missing(id)
45
- name = id.id2name
46
- self.const_get(name) if self.const_defined?(name)
47
- end
48
- end
49
- end
50
- end
51
-