context 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. data/Rakefile.rb +107 -0
  2. data/coverage/-usr-local-lib-site_ruby-1_8-atk_rb.html +612 -0
  3. data/coverage/-usr-local-lib-site_ruby-1_8-gdk_pixbuf2_rb.html +637 -0
  4. data/coverage/-usr-local-lib-site_ruby-1_8-glib2_rb.html +829 -0
  5. data/coverage/-usr-local-lib-site_ruby-1_8-gtk2-base_rb.html +709 -0
  6. data/coverage/-usr-local-lib-site_ruby-1_8-gtk2_rb.html +623 -0
  7. data/coverage/-usr-local-lib-site_ruby-1_8-pango_rb.html +665 -0
  8. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-color_rb.html +865 -0
  9. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-colors_rb.html +1266 -0
  10. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-constants_rb.html +632 -0
  11. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-blur_rb.html +655 -0
  12. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-circle_rb.html +619 -0
  13. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-color_rb.html +621 -0
  14. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-path_rb.html +726 -0
  15. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-rectangle_rb.html +643 -0
  16. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-triangle_rb.html +622 -0
  17. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context_rb.html +639 -0
  18. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-paper_rb.html +793 -0
  19. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-papers_rb.html +651 -0
  20. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-path_rb.html +625 -0
  21. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-point_rb.html +617 -0
  22. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo_rb.html +756 -0
  23. data/coverage/index.html +1170 -0
  24. data/coverage/lib-Context-Bridge_rb.html +673 -0
  25. data/coverage/lib-Context-Context_rb.html +756 -0
  26. data/coverage/lib-Context-EnumeratedType_rb.html +661 -0
  27. data/coverage/lib-Context-ExecutionProxy_rb.html +671 -0
  28. data/coverage/lib-Context-Gtk-App_rb.html +638 -0
  29. data/coverage/lib-Context-Gtk-Key_rb.html +664 -0
  30. data/coverage/lib-Context-Gtk-Widget_rb.html +667 -0
  31. data/coverage/lib-Context-KeyAssignment_rb.html +641 -0
  32. data/coverage/lib-Context-KeyMap_rb.html +653 -0
  33. data/coverage/lib-Context-Key_rb.html +667 -0
  34. data/coverage/lib-Context-View_rb.html +659 -0
  35. data/coverage/lib-Context-Views-Gtk-PageView_rb.html +660 -0
  36. data/coverage/lib-Context-Views-PageView_rb.html +627 -0
  37. data/coverage/lib-Context-Widget_rb.html +650 -0
  38. data/coverage/lib-Context-require_all_rb.html +623 -0
  39. data/doc/classes/Context.html +174 -0
  40. data/doc/classes/Context/Bridge.html +296 -0
  41. data/doc/classes/Context/Context.html +564 -0
  42. data/doc/classes/Context/EnumeratedType.html +283 -0
  43. data/doc/classes/Context/ExecutionProxy.html +228 -0
  44. data/doc/classes/Context/Gtk.html +126 -0
  45. data/doc/classes/Context/Gtk/App.html +217 -0
  46. data/doc/classes/Context/Gtk/Key.html +292 -0
  47. data/doc/classes/Context/Gtk/PageView.html +245 -0
  48. data/doc/classes/Context/Gtk/PageView/MainWindow.html +200 -0
  49. data/doc/classes/Context/Gtk/Widget.html +311 -0
  50. data/doc/classes/Context/Key.html +305 -0
  51. data/doc/classes/Context/Key/Modifier.html +117 -0
  52. data/doc/classes/Context/KeyAssignment.html +234 -0
  53. data/doc/classes/Context/KeyMap.html +273 -0
  54. data/doc/classes/Context/PageView.html +180 -0
  55. data/doc/classes/Context/View.html +334 -0
  56. data/doc/classes/Context/Widget.html +298 -0
  57. data/doc/classes/Kernel.html +148 -0
  58. data/doc/classes/Object.html +196 -0
  59. data/doc/created.rid +1 -0
  60. data/doc/files/lib/Context/Bridge_rb.html +108 -0
  61. data/doc/files/lib/Context/Context_rb.html +109 -0
  62. data/doc/files/lib/Context/EnumeratedType_rb.html +101 -0
  63. data/doc/files/lib/Context/ExecutionProxy_rb.html +101 -0
  64. data/doc/files/lib/Context/Gtk/App_rb.html +110 -0
  65. data/doc/files/lib/Context/Gtk/Key_rb.html +109 -0
  66. data/doc/files/lib/Context/Gtk/Widget_rb.html +109 -0
  67. data/doc/files/lib/Context/KeyAssignment_rb.html +108 -0
  68. data/doc/files/lib/Context/KeyMap_rb.html +109 -0
  69. data/doc/files/lib/Context/Key_rb.html +108 -0
  70. data/doc/files/lib/Context/Version_rb.html +101 -0
  71. data/doc/files/lib/Context/View_rb.html +101 -0
  72. data/doc/files/lib/Context/Views/Gtk/PageView_rb.html +111 -0
  73. data/doc/files/lib/Context/Views/PageView_rb.html +108 -0
  74. data/doc/files/lib/Context/Widget_rb.html +101 -0
  75. data/doc/files/lib/Context/require_all_rb.html +101 -0
  76. data/doc/fr_class_index.html +46 -0
  77. data/doc/fr_file_index.html +42 -0
  78. data/doc/fr_method_index.html +103 -0
  79. data/doc/index.html +24 -0
  80. data/doc/rdoc-style.css +208 -0
  81. data/lib/Context/Bridge.rb +63 -0
  82. data/lib/Context/Context.rb +146 -0
  83. data/lib/Context/EnumeratedType.rb +51 -0
  84. data/lib/Context/ExecutionProxy.rb +61 -0
  85. data/lib/Context/Gtk/App.rb +28 -0
  86. data/lib/Context/Gtk/Key.rb +54 -0
  87. data/lib/Context/Gtk/Widget.rb +57 -0
  88. data/lib/Context/Key.rb +57 -0
  89. data/lib/Context/KeyAssignment.rb +31 -0
  90. data/lib/Context/KeyMap.rb +43 -0
  91. data/lib/Context/Version.rb +5 -0
  92. data/lib/Context/View.rb +49 -0
  93. data/lib/Context/Views/Gtk/PageView.rb +50 -0
  94. data/lib/Context/Views/PageView.rb +17 -0
  95. data/lib/Context/Widget.rb +40 -0
  96. data/lib/Context/require_all.rb +13 -0
  97. data/spec/Context/Bridge_spec.rb +40 -0
  98. data/spec/Context/Context_spec.rb +102 -0
  99. data/spec/Context/EnumeratedType_spec.rb +51 -0
  100. data/spec/Context/ExecutionProxy_spec.rb +28 -0
  101. data/spec/Context/Gtk/App_spec.rb +24 -0
  102. data/spec/Context/Gtk/Key_spec.rb +45 -0
  103. data/spec/Context/Gtk/Widget_spec.rb +44 -0
  104. data/spec/Context/KeyAssignment_spec.rb +26 -0
  105. data/spec/Context/KeyMap_spec.rb +64 -0
  106. data/spec/Context/Key_spec.rb +22 -0
  107. data/spec/Context/View_spec.rb +62 -0
  108. data/spec/Context/Views/Gtk/PageView_spec.rb +44 -0
  109. data/spec/Context/Views/PageView_spec.rb +20 -0
  110. data/spec/Context/Widget_spec.rb +15 -0
  111. data/spec/Context/require_all_spec.rb +13 -0
  112. data/test_results.html +343 -0
  113. metadata +179 -0
@@ -0,0 +1,46 @@
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>
@@ -0,0 +1,42 @@
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>
@@ -0,0 +1,103 @@
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>
data/doc/index.html ADDED
@@ -0,0 +1,24 @@
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>
@@ -0,0 +1,208 @@
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; }
@@ -0,0 +1,63 @@
1
+ require 'Context/ExecutionProxy'
2
+
3
+ module Context
4
+
5
+ # This class is used to specify the namespace for a symbol
6
+ # according to a priority list. When you create the Bridge
7
+ # you initialize it either with a single module name, or an
8
+ # array of module names. Calling "bridge.symbol" will return
9
+ # the class in desired namespace (or nil if it doesn't exist)
10
+ # If the Bridge was initialized with an array, it will pick
11
+ # the first namespace that evaluates the symbol into something
12
+ # that actually exists.
13
+ class Bridge
14
+
15
+ # Takes either a module name, or an array of module names
16
+ def initialize(mods)
17
+ if mods.class != Array
18
+ @mod = mods
19
+ @mods = nil
20
+ else
21
+ @mods = mods
22
+ @mod = nil
23
+ end
24
+ end
25
+
26
+ # Convert the module name and symbol to a string
27
+ def symbolToS(mod, symbol)
28
+ mod.to_s + "::" + symbol.to_s
29
+ end
30
+
31
+ # Evaluate the module and symbol, returning the class.
32
+ # If it doesn't exist, return nil
33
+ def evalClass(mod, symbol)
34
+ begin
35
+ mod.unless_nil do class_eval(symbol.to_s) end
36
+ rescue
37
+ nil
38
+ end
39
+ end
40
+
41
+ # Returns true if the mod and symbol evaluate to a class in the system.
42
+ def classExists?(mod, symbol)
43
+ symbolToS(mod, symbol).eql?(evalClass(mod, symbol).to_s)
44
+ end
45
+
46
+ # Return the class specified by the stored module and the symbol
47
+ # If an array of modules was stored, walk through them and pick
48
+ # the first one that creates an extant class.
49
+ def method_missing(symbol)
50
+ if !@mod.nil?
51
+ @mod.class_eval(symbol.to_s)
52
+ elsif !@mods.nil?
53
+ mod = @mods.find do |mod|
54
+ classExists?(mod, symbol)
55
+ end
56
+ evalClass(mod, symbol)
57
+ else
58
+ nil
59
+ end
60
+ end
61
+
62
+ end
63
+ end