caius-celerity 0.0.6.10 → 0.0.6.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +335 -0
- data/benchmark/bm_2000_spans.rb +48 -0
- data/benchmark/bm_digg.rb +26 -0
- data/benchmark/bm_google_images.rb +36 -0
- data/benchmark/bm_input_locator.rb +69 -0
- data/benchmark/bm_text_input.rb +19 -0
- data/benchmark/loader.rb +14 -0
- data/celerity.gemspec +33 -0
- data/config/hoe.rb +78 -0
- data/config/requirements.rb +9 -0
- data/lib/celerity/version.rb +1 -1
- data/spec/area_spec.rb +97 -0
- data/spec/areas_spec.rb +40 -0
- data/spec/browser_authentication_spec.rb +20 -0
- data/spec/browser_spec.rb +537 -0
- data/spec/button_spec.rb +244 -0
- data/spec/buttons_spec.rb +51 -0
- data/spec/checkbox_spec.rb +302 -0
- data/spec/checkboxes_spec.rb +38 -0
- data/spec/clickable_element_spec.rb +43 -0
- data/spec/dd_spec.rb +143 -0
- data/spec/dds_spec.rb +39 -0
- data/spec/default_viewer_spec.rb +24 -0
- data/spec/div_spec.rb +235 -0
- data/spec/divs_spec.rb +39 -0
- data/spec/dl_spec.rb +143 -0
- data/spec/dls_spec.rb +39 -0
- data/spec/dt_spec.rb +143 -0
- data/spec/dts_spec.rb +39 -0
- data/spec/element_spec.rb +150 -0
- data/spec/em_spec.rb +116 -0
- data/spec/ems_spec.rb +39 -0
- data/spec/filefield_spec.rb +133 -0
- data/spec/filefields_spec.rb +40 -0
- data/spec/form_spec.rb +59 -0
- data/spec/forms_spec.rb +41 -0
- data/spec/frame_spec.rb +139 -0
- data/spec/frames_spec.rb +71 -0
- data/spec/hidden_spec.rb +127 -0
- data/spec/hiddens_spec.rb +39 -0
- data/spec/hn_spec.rb +104 -0
- data/spec/hns_spec.rb +45 -0
- data/spec/html/2000_spans.html +2009 -0
- data/spec/html/bug_duplicate_attributes.html +14 -0
- data/spec/html/bug_javascript_001.html +11 -0
- data/spec/html/definition_lists.html +48 -0
- data/spec/html/euc-jp_text.html +17 -0
- data/spec/html/forms_with_input_elements.html +124 -0
- data/spec/html/frame_1.html +18 -0
- data/spec/html/frame_2.html +16 -0
- data/spec/html/frames.html +11 -0
- data/spec/html/iframes.html +12 -0
- data/spec/html/images.html +27 -0
- data/spec/html/images/1.gif +0 -0
- data/spec/html/images/2.gif +0 -0
- data/spec/html/images/3.gif +0 -0
- data/spec/html/images/button.jpg +0 -0
- data/spec/html/images/circle.jpg +0 -0
- data/spec/html/images/map.gif +0 -0
- data/spec/html/images/map2.gif +0 -0
- data/spec/html/images/minus.gif +0 -0
- data/spec/html/images/originaltriangle.jpg +0 -0
- data/spec/html/images/plus.gif +0 -0
- data/spec/html/images/square.jpg +0 -0
- data/spec/html/images/triangle.jpg +0 -0
- data/spec/html/iso-2022-jp_text.html +17 -0
- data/spec/html/jquery.html +29 -0
- data/spec/html/latin1_text.html +17 -0
- data/spec/html/multiple_ids.html +14 -0
- data/spec/html/non_control_elements.html +115 -0
- data/spec/html/right_click.html +16 -0
- data/spec/html/shift_jis_text.html +17 -0
- data/spec/html/tables.html +119 -0
- data/spec/html/timeout.html +16 -0
- data/spec/html/tiny_mce.html +29 -0
- data/spec/html/utf8_text.html +15 -0
- data/spec/htmlunit_spec.rb +47 -0
- data/spec/image_spec.rb +221 -0
- data/spec/images_spec.rb +39 -0
- data/spec/index_offset_spec.rb +26 -0
- data/spec/label_spec.rb +88 -0
- data/spec/labels_spec.rb +40 -0
- data/spec/li_spec.rb +139 -0
- data/spec/link_spec.rb +200 -0
- data/spec/links_spec.rb +47 -0
- data/spec/lis_spec.rb +40 -0
- data/spec/listener_spec.rb +142 -0
- data/spec/map_spec.rb +102 -0
- data/spec/maps_spec.rb +40 -0
- data/spec/meta_spec.rb +29 -0
- data/spec/metas_spec.rb +38 -0
- data/spec/ol_spec.rb +87 -0
- data/spec/ols_spec.rb +40 -0
- data/spec/option_spec.rb +156 -0
- data/spec/p_spec.rb +171 -0
- data/spec/pre_spec.rb +135 -0
- data/spec/pres_spec.rb +40 -0
- data/spec/ps_spec.rb +40 -0
- data/spec/radio_spec.rb +314 -0
- data/spec/radios_spec.rb +42 -0
- data/spec/select_list_spec.rb +320 -0
- data/spec/select_lists_spec.rb +47 -0
- data/spec/span_spec.rb +184 -0
- data/spec/spans_spec.rb +64 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +66 -0
- data/spec/strong_spec.rb +101 -0
- data/spec/strongs_spec.rb +40 -0
- data/spec/table_bodies_spec.rb +57 -0
- data/spec/table_body_spec.rb +109 -0
- data/spec/table_cell_spec.rb +84 -0
- data/spec/table_cells_spec.rb +59 -0
- data/spec/table_footer_spec.rb +96 -0
- data/spec/table_footers_spec.rb +55 -0
- data/spec/table_header_spec.rb +101 -0
- data/spec/table_headers_spec.rb +55 -0
- data/spec/table_row_spec.rb +106 -0
- data/spec/table_rows_spec.rb +58 -0
- data/spec/table_spec.rb +169 -0
- data/spec/tables_spec.rb +42 -0
- data/spec/text_field_spec.rb +331 -0
- data/spec/text_fields_spec.rb +44 -0
- data/spec/ul_spec.rb +88 -0
- data/spec/uls_spec.rb +40 -0
- data/spec/watir_compatibility_spec.rb +268 -0
- data/support/spec_server.rb +122 -0
- data/tasks/benchmark.rake +4 -0
- data/tasks/deployment.rake +43 -0
- data/tasks/environment.rake +7 -0
- data/tasks/fix.rake +25 -0
- data/tasks/rspec.rake +31 -0
- data/tasks/simple_ci.rake +94 -0
- data/tasks/snapshot.rake +22 -0
- data/tasks/specserver.rake +21 -0
- data/tasks/website.rake +17 -0
- data/tasks/yard.rake +9 -0
- data/website/benchmarks.html +237 -0
- data/website/css/color.css +153 -0
- data/website/css/hacks.css +3 -0
- data/website/css/layout.css +179 -0
- data/website/css/screen.css +5 -0
- data/website/css/textmate.css +226 -0
- data/website/css/typography.css +72 -0
- data/website/gfx/body_bg.gif +0 -0
- data/website/gfx/button_bg.jpg +0 -0
- data/website/gfx/header_bg.jpg +0 -0
- data/website/gfx/header_left.jpg +0 -0
- data/website/gfx/header_right.jpg +0 -0
- data/website/gfx/nav_bg.jpg +0 -0
- data/website/index.html +133 -0
- data/website/yard/Celerity.html +50 -0
- data/website/yard/Celerity/Area.html +212 -0
- data/website/yard/Celerity/Areas.html +103 -0
- data/website/yard/Celerity/Browser.html +5594 -0
- data/website/yard/Celerity/Button.html +312 -0
- data/website/yard/Celerity/Buttons.html +103 -0
- data/website/yard/Celerity/CheckBox.html +347 -0
- data/website/yard/Celerity/CheckBoxes.html +103 -0
- data/website/yard/Celerity/ClickableElement.html +448 -0
- data/website/yard/Celerity/Container.html +7676 -0
- data/website/yard/Celerity/Dd.html +198 -0
- data/website/yard/Celerity/Dds.html +103 -0
- data/website/yard/Celerity/DefaultViewer.html +101 -0
- data/website/yard/Celerity/DisabledElement.html +252 -0
- data/website/yard/Celerity/Div.html +198 -0
- data/website/yard/Celerity/Divs.html +103 -0
- data/website/yard/Celerity/Dl.html +198 -0
- data/website/yard/Celerity/Dls.html +103 -0
- data/website/yard/Celerity/Dt.html +198 -0
- data/website/yard/Celerity/Dts.html +103 -0
- data/website/yard/Celerity/Element.html +1703 -0
- data/website/yard/Celerity/ElementCollection.html +725 -0
- data/website/yard/Celerity/ElementLocator.html +589 -0
- data/website/yard/Celerity/Em.html +198 -0
- data/website/yard/Celerity/Ems.html +103 -0
- data/website/yard/Celerity/Exception.html +23 -0
- data/website/yard/Celerity/Exception/CelerityException.html +32 -0
- data/website/yard/Celerity/Exception/MissingWayOfFindingObjectException.html +32 -0
- data/website/yard/Celerity/Exception/NavigationException.html +33 -0
- data/website/yard/Celerity/Exception/NoValueFoundException.html +33 -0
- data/website/yard/Celerity/Exception/ObjectDisabledException.html +33 -0
- data/website/yard/Celerity/Exception/ObjectReadOnlyException.html +33 -0
- data/website/yard/Celerity/Exception/UnexpectedPageException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownCellException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownFormException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownFrameException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownObjectException.html +33 -0
- data/website/yard/Celerity/Exception/UnknownRowException.html +33 -0
- data/website/yard/Celerity/FileField.html +289 -0
- data/website/yard/Celerity/FileFields.html +103 -0
- data/website/yard/Celerity/Form.html +284 -0
- data/website/yard/Celerity/Forms.html +103 -0
- data/website/yard/Celerity/Frame.html +527 -0
- data/website/yard/Celerity/Frames.html +103 -0
- data/website/yard/Celerity/H1.html +198 -0
- data/website/yard/Celerity/H1s.html +103 -0
- data/website/yard/Celerity/H2.html +198 -0
- data/website/yard/Celerity/H2s.html +103 -0
- data/website/yard/Celerity/H3.html +198 -0
- data/website/yard/Celerity/H3s.html +103 -0
- data/website/yard/Celerity/H4.html +198 -0
- data/website/yard/Celerity/H4s.html +103 -0
- data/website/yard/Celerity/H5.html +198 -0
- data/website/yard/Celerity/H5s.html +103 -0
- data/website/yard/Celerity/H6.html +198 -0
- data/website/yard/Celerity/H6s.html +103 -0
- data/website/yard/Celerity/Hidden.html +285 -0
- data/website/yard/Celerity/Hiddens.html +103 -0
- data/website/yard/Celerity/Image.html +645 -0
- data/website/yard/Celerity/Images.html +103 -0
- data/website/yard/Celerity/InputElement.html +271 -0
- data/website/yard/Celerity/Label.html +210 -0
- data/website/yard/Celerity/Labels.html +103 -0
- data/website/yard/Celerity/Li.html +198 -0
- data/website/yard/Celerity/Link.html +295 -0
- data/website/yard/Celerity/Links.html +103 -0
- data/website/yard/Celerity/Lis.html +103 -0
- data/website/yard/Celerity/Listener.html +821 -0
- data/website/yard/Celerity/Map.html +198 -0
- data/website/yard/Celerity/Maps.html +103 -0
- data/website/yard/Celerity/Meta.html +196 -0
- data/website/yard/Celerity/Metas.html +103 -0
- data/website/yard/Celerity/MethodGenerator.html +195 -0
- data/website/yard/Celerity/NonControlElement.html +212 -0
- data/website/yard/Celerity/Ol.html +198 -0
- data/website/yard/Celerity/Ols.html +103 -0
- data/website/yard/Celerity/Option.html +348 -0
- data/website/yard/Celerity/Options.html +103 -0
- data/website/yard/Celerity/P.html +198 -0
- data/website/yard/Celerity/Pre.html +198 -0
- data/website/yard/Celerity/Pres.html +103 -0
- data/website/yard/Celerity/Ps.html +103 -0
- data/website/yard/Celerity/Radio.html +339 -0
- data/website/yard/Celerity/RadioCheckCommon.html +453 -0
- data/website/yard/Celerity/Radios.html +103 -0
- data/website/yard/Celerity/SelectList.html +1122 -0
- data/website/yard/Celerity/SelectLists.html +103 -0
- data/website/yard/Celerity/ShortInspect.html +108 -0
- data/website/yard/Celerity/Span.html +198 -0
- data/website/yard/Celerity/Spans.html +103 -0
- data/website/yard/Celerity/Strong.html +198 -0
- data/website/yard/Celerity/Strongs.html +103 -0
- data/website/yard/Celerity/Table.html +1287 -0
- data/website/yard/Celerity/TableBodies.html +103 -0
- data/website/yard/Celerity/TableBody.html +203 -0
- data/website/yard/Celerity/TableCell.html +279 -0
- data/website/yard/Celerity/TableCells.html +103 -0
- data/website/yard/Celerity/TableElement.html +437 -0
- data/website/yard/Celerity/TableFooter.html +203 -0
- data/website/yard/Celerity/TableFooters.html +103 -0
- data/website/yard/Celerity/TableHeader.html +203 -0
- data/website/yard/Celerity/TableHeaders.html +103 -0
- data/website/yard/Celerity/TableRow.html +478 -0
- data/website/yard/Celerity/TableRows.html +103 -0
- data/website/yard/Celerity/Tables.html +103 -0
- data/website/yard/Celerity/TextField.html +938 -0
- data/website/yard/Celerity/TextFields.html +103 -0
- data/website/yard/Celerity/Th.html +208 -0
- data/website/yard/Celerity/Ul.html +209 -0
- data/website/yard/Celerity/Uls.html +103 -0
- data/website/yard/Celerity/Util.html +264 -0
- data/website/yard/Celerity/VERSION.html +44 -0
- data/website/yard/HtmlUnit.html +23 -0
- data/website/yard/HtmlUnit/Html.html +23 -0
- data/website/yard/HtmlUnit/Util.html +23 -0
- data/website/yard/Java/ComGargoylesoftwareHtmlunitHtml/HtmlPage.html +90 -0
- data/website/yard/Java/JavaLang/Iterable.html +103 -0
- data/website/yard/Java/OrgW3cDom/NamedNodeMap.html +97 -0
- data/website/yard/README.txt.html +116 -0
- data/website/yard/String.html +103 -0
- data/website/yard/all-files.html +22 -0
- data/website/yard/all-methods.html +3276 -0
- data/website/yard/all-namespaces.html +258 -0
- data/website/yard/app.js +18 -0
- data/website/yard/index.html +19 -0
- data/website/yard/jquery.js +11 -0
- data/website/yard/style.css +68 -0
- data/website/yard/syntax_highlight.css +21 -0
- metadata +285 -13
@@ -0,0 +1,198 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
+
|
9
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<title>Class: Celerity::Strong</title>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="content">
|
15
|
+
<div class="section class Celerity_Strong">
|
16
|
+
<h1 class="title">Class: Celerity::Strong</h1>
|
17
|
+
<div class="section inheritance">
|
18
|
+
<ul>
|
19
|
+
<li><a title="Celerity::Element" href="Element.html">Celerity::Element</a></li><ul><li><a title="Celerity::NonControlElement" href="NonControlElement.html">Celerity::NonControlElement</a></li><ul><li>Celerity::Strong</li>
|
20
|
+
</ul></ul></ul>
|
21
|
+
</div><div class="section constants">
|
22
|
+
<div class="thisclass">
|
23
|
+
<h1>Constants</h1>
|
24
|
+
<dl>
|
25
|
+
|
26
|
+
<dt id="TAGS-constant">TAGS</dt>
|
27
|
+
<dd>[ Identifier.new('strong') ]</dd>
|
28
|
+
|
29
|
+
</dl>
|
30
|
+
</div>
|
31
|
+
<div class="inherited">
|
32
|
+
|
33
|
+
<div>
|
34
|
+
<h1>Constants Inherited from <a title="Celerity::NonControlElement" href="NonControlElement.html">Celerity::NonControlElement</a></h1>
|
35
|
+
<p><span class='name'><a title="ATTRIBUTES" href="NonControlElement.html#ATTRIBUTES-constant">ATTRIBUTES</a></span>, <span class='name'><a title="DEFAULT_HOW" href="NonControlElement.html#DEFAULT_HOW-constant">DEFAULT_HOW</a></span></p>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div>
|
39
|
+
<h1>Constants Inherited from <a title="Celerity::Element" href="Element.html">Celerity::Element</a></h1>
|
40
|
+
<p><span class='name'><a title="BASE_ATTRIBUTES" href="Element.html#BASE_ATTRIBUTES-constant">BASE_ATTRIBUTES</a></span>, <span class='name'><a title="CELLHALIGN_ATTRIBUTES" href="Element.html#CELLHALIGN_ATTRIBUTES-constant">CELLHALIGN_ATTRIBUTES</a></span>, <span class='name'><a title="CELLVALIGN_ATTRIBUTES" href="Element.html#CELLVALIGN_ATTRIBUTES-constant">CELLVALIGN_ATTRIBUTES</a></span>, <span class='name'><a title="HTML_401_TRANSITIONAL" href="Element.html#HTML_401_TRANSITIONAL-constant">HTML_401_TRANSITIONAL</a></span>, <span class='name'><a title="TO_S_SIZE" href="Element.html#TO_S_SIZE-constant">TO_S_SIZE</a></span></p>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
<div class="clear"></div>
|
45
|
+
</div><div class="section constructor">
|
46
|
+
<h1>Constructor Summary</h1>
|
47
|
+
<p class="inherited_msg">
|
48
|
+
This class inherits a constructor from <a title="Celerity::Element" href="Element.html#initialize-instance_method">Celerity::Element</a>.
|
49
|
+
</p>
|
50
|
+
</div><div class="section methodmissing">
|
51
|
+
<h1>Dynamic Method Handling</h1>
|
52
|
+
|
53
|
+
<p class="note">
|
54
|
+
This class handles dynamic methods through the <tt>method_missing</tt> method
|
55
|
+
|
56
|
+
in the class <a title="Celerity::Element" href="Element.html">Celerity::Element</a>
|
57
|
+
|
58
|
+
</p>
|
59
|
+
|
60
|
+
<div id="method_missing-instance_method" class="section method">
|
61
|
+
<div class="details_title">
|
62
|
+
<div class='section methodsignature'>
|
63
|
+
<tt class='def'>
|
64
|
+
<span class='visibility'>public</span>
|
65
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
66
|
+
<span class='name'>method_missing</span><span class='args'>(meth, *args, &blk)</span>
|
67
|
+
<span class='block'></span>
|
68
|
+
</tt>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
</div><div class="section docstring">
|
72
|
+
<p>
|
73
|
+
Dynamically get element attributes.
|
74
|
+
</p>
|
75
|
+
|
76
|
+
</div><div class="section tags">
|
77
|
+
<h2>Meta Tags</h2>
|
78
|
+
<div class="param">
|
79
|
+
<h3>Parameters:</h3>
|
80
|
+
<dl>
|
81
|
+
|
82
|
+
</dl>
|
83
|
+
</div><div class="return">
|
84
|
+
<h3>Returns:</h3>
|
85
|
+
<dl>
|
86
|
+
|
87
|
+
<dt>
|
88
|
+
|
89
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
90
|
+
|
91
|
+
|
92
|
+
<span class='name'></span>
|
93
|
+
|
94
|
+
|
95
|
+
</dt>
|
96
|
+
<dd>
|
97
|
+
<span class='desc'><p>
|
98
|
+
The resulting attribute.
|
99
|
+
</p>
|
100
|
+
</span>
|
101
|
+
</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
</div>
|
105
|
+
<div class="raise">
|
106
|
+
<h3>Raises:</h3>
|
107
|
+
<dl>
|
108
|
+
|
109
|
+
<dt>
|
110
|
+
|
111
|
+
<span class='type'>[<tt>NoMethodError</tt>]</span>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
</dt>
|
116
|
+
<dd>
|
117
|
+
<span class='desc'><p>
|
118
|
+
if the element doesn’t support this attribute.
|
119
|
+
</p>
|
120
|
+
</span>
|
121
|
+
</dd>
|
122
|
+
|
123
|
+
</dl>
|
124
|
+
</div>
|
125
|
+
<div class="see">
|
126
|
+
<h3>See Also:</h3>
|
127
|
+
<dl>
|
128
|
+
<dt></dt>
|
129
|
+
<dd>
|
130
|
+
<span class='desc'>
|
131
|
+
<tt>ATTRIBUTES constant for a list of valid methods for a given element.</tt>
|
132
|
+
</span>
|
133
|
+
</dd>
|
134
|
+
</dl>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
</div><div class="section source">
|
138
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
139
|
+
<div class="source_code">
|
140
|
+
<table>
|
141
|
+
<tr>
|
142
|
+
<td>
|
143
|
+
<pre class="lines">
|
144
|
+
|
145
|
+
|
146
|
+
235
|
147
|
+
236
|
148
|
+
237
|
149
|
+
238
|
150
|
+
239
|
151
|
+
240
|
152
|
+
241
|
153
|
+
242
|
154
|
+
243
|
155
|
+
244
|
156
|
+
245</pre>
|
157
|
+
</td>
|
158
|
+
<td>
|
159
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 235</span>
|
160
|
+
|
161
|
+
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='blk identifier id'>blk</span><span class='rparen token'>)</span>
|
162
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
163
|
+
|
164
|
+
<span class='meth identifier id'>meth</span> <span class='assign token'>=</span> <span class='selector_to_attribute identifier id'>selector_to_attribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span>
|
165
|
+
|
166
|
+
<span class='if if kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='colon2 op'>::</span><span class='ATTRIBUTES constant id'>ATTRIBUTES</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span> <span class='eq op'>==</span> <span class='Element constant id'>Element</span> <span class='andop op'>&&</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='hasAttribute identifier id'>hasAttribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
167
|
+
<span class='return return kw'>return</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getAttribute identifier id'>getAttribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span>
|
168
|
+
<span class='end end kw'>end</span>
|
169
|
+
<span class='Log constant id'>Log</span><span class='dot token'>.</span><span class='warn identifier id'>warn</span> <span class='dstring node'>"Element\#method_missing calling super with #{meth.inspect}"</span>
|
170
|
+
<span class='super super kw'>super</span>
|
171
|
+
<span class='end end kw'>end</span>
|
172
|
+
</pre>
|
173
|
+
</td>
|
174
|
+
</tr>
|
175
|
+
</table>
|
176
|
+
</div>
|
177
|
+
</div>
|
178
|
+
</div>
|
179
|
+
</div> <div class="section visibilitygroup public">
|
180
|
+
<h1>Public Visibility</h1>
|
181
|
+
<div class="section methodsummary instance public">
|
182
|
+
<div class="inherited">
|
183
|
+
|
184
|
+
<div>
|
185
|
+
<h1>Public Instance Methods Inherited from <a title="Celerity::Element" href="Element.html">Celerity::Element</a></h1>
|
186
|
+
<p><span class='name'><a title="assert_exists" href="Element.html#assert_exists-instance_method">assert_exists</a></span>, <span class='name'><a title="attribute_string" href="Element.html#attribute_string-instance_method">attribute_string</a></span>, <span class='name'><a title="attribute_value" href="Element.html#attribute_value-instance_method">attribute_value</a></span>, <span class='name'><a title="exists?" href="Element.html#exists%3F-instance_method">exists?</a></span>, <span class='name'><a title="fire_event" href="Element.html#fire_event-instance_method">fire_event</a></span>, <span class='name'><a title="focus" href="Element.html#focus-instance_method">focus</a></span>, <span class='name'><a title="locate" href="Element.html#locate-instance_method">locate</a></span>, <span class='name'><a title="methods" href="Element.html#methods-instance_method">methods</a></span>, <span class='name'><a title="object" href="Element.html#object-instance_method">object</a></span>, <span class='name'><a title="parent" href="Element.html#parent-instance_method">parent</a></span>, <span class='name'><a title="respond_to?" href="Element.html#respond_to%3F-instance_method">respond_to?</a></span>, <span class='name'><a title="text" href="Element.html#text-instance_method">text</a></span>, <span class='name'><a title="to_s" href="Element.html#to_s-instance_method">to_s</a></span>, <span class='name'><a title="to_xml" href="Element.html#to_xml-instance_method">to_xml</a></span>, <span class='name'><a title="visible?" href="Element.html#visible%3F-instance_method">visible?</a></span>, <span class='name'><a title="xpath" href="Element.html#xpath-instance_method">xpath</a></span></p>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
<div class="clear"></div>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
</div>
|
196
|
+
</div>
|
197
|
+
</body>
|
198
|
+
</html>
|
@@ -0,0 +1,103 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
+
|
9
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<title>Class: Celerity::Strongs</title>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="content">
|
15
|
+
<div class="section class Celerity_Strongs">
|
16
|
+
<h1 class="title">Class: Celerity::Strongs</h1>
|
17
|
+
<div class="section inheritance">
|
18
|
+
<ul>
|
19
|
+
<li><a title="Celerity::ElementCollection" href="ElementCollection.html">Celerity::ElementCollection</a></li><ul><li>Celerity::Strongs</li>
|
20
|
+
</ul></ul>
|
21
|
+
</div><div class="section constants">
|
22
|
+
|
23
|
+
</div><div class="section constructor">
|
24
|
+
<h1>Constructor Summary</h1>
|
25
|
+
<p class="inherited_msg">
|
26
|
+
This class inherits a constructor from <a title="Celerity::ElementCollection" href="ElementCollection.html#initialize-instance_method">Celerity::ElementCollection</a>.
|
27
|
+
</p>
|
28
|
+
</div> <div class="section visibilitygroup public">
|
29
|
+
<h1>Public Visibility</h1>
|
30
|
+
<div class="section methodsummary instance public">
|
31
|
+
<h1>Public Instance Method Summary</h1>
|
32
|
+
<table class="summary">
|
33
|
+
|
34
|
+
<tr>
|
35
|
+
<th class="signature">
|
36
|
+
<span class='name'><a title="#element_class" href="#element_class-instance_method">#element_class</a></span><span class='args'></span>
|
37
|
+
<span class='block'></span>
|
38
|
+
|
39
|
+
</th>
|
40
|
+
<td class="docstring">
|
41
|
+
|
42
|
+
|
43
|
+
</td>
|
44
|
+
</tr>
|
45
|
+
|
46
|
+
</table><div class="inherited">
|
47
|
+
|
48
|
+
<div>
|
49
|
+
<h1>Public Instance Methods Inherited from <a title="Celerity::ElementCollection" href="ElementCollection.html">Celerity::ElementCollection</a></h1>
|
50
|
+
<p><span class='name'><a title="[]" href="ElementCollection.html#%5B%5D-instance_method">[]</a></span>, <span class='name'><a title="each" href="ElementCollection.html#each-instance_method">each</a></span>, <span class='name'><a title="first" href="ElementCollection.html#first-instance_method">first</a></span>, <span class='name'><a title="last" href="ElementCollection.html#last-instance_method">last</a></span>, <span class='name'><a title="length" href="ElementCollection.html#length-instance_method">length</a></span>, <span class='name'><a title="to_s" href="ElementCollection.html#to_s-instance_method">to_s</a></span></p>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
<div class="section methoddetails instance public">
|
57
|
+
<h1>Public Instance Method Details</h1>
|
58
|
+
|
59
|
+
<div class="method">
|
60
|
+
<div class="method_header">
|
61
|
+
<h3>element_class</h3>
|
62
|
+
</div><div id="element_class-instance_method" class="section method">
|
63
|
+
<div class="details_title">
|
64
|
+
<div class='section methodsignature'>
|
65
|
+
<tt class='def'>
|
66
|
+
<span class='visibility'>public</span>
|
67
|
+
<span class='return_types'></span>
|
68
|
+
<span class='name'>element_class</span><span class='args'></span>
|
69
|
+
<span class='block'></span>
|
70
|
+
</tt>
|
71
|
+
</div>
|
72
|
+
|
73
|
+
</div><div class="section source">
|
74
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
75
|
+
<div class="source_code">
|
76
|
+
<table>
|
77
|
+
<tr>
|
78
|
+
<td>
|
79
|
+
<pre class="lines">
|
80
|
+
|
81
|
+
|
82
|
+
118</pre>
|
83
|
+
</td>
|
84
|
+
<td>
|
85
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/collections.rb', line 118</span>
|
86
|
+
|
87
|
+
<span class='def def kw'>def</span> <span class='element_class identifier id'>element_class</span><span class='semicolon token'>;</span> <span class='Strong constant id'>Strong</span><span class='semicolon token'>;</span> <span class='end end kw'>end</span>
|
88
|
+
</pre>
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
</table>
|
92
|
+
</div>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
</body>
|
103
|
+
</html>
|
@@ -0,0 +1,1287 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
+
|
9
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<title>Class: Celerity::Table</title>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="content">
|
15
|
+
<div class="section class Celerity_Table">
|
16
|
+
<h1 class="title">Class: Celerity::Table</h1>
|
17
|
+
<div class="section inheritance">
|
18
|
+
<ul>
|
19
|
+
<li><a title="Celerity::Element" href="Element.html">Celerity::Element</a></li><ul><li>Celerity::Table</li>
|
20
|
+
</ul></ul>
|
21
|
+
</div><div class="section mixins">
|
22
|
+
<h1>Included Modules</h1>
|
23
|
+
<p><a title="Celerity::ClickableElement" href="Table/ClickableElement.html">Celerity::ClickableElement</a>, Enumerable, <a title="Celerity::Container" href="Table/Container.html">Celerity::Container</a></p>
|
24
|
+
</div><div class="section constants">
|
25
|
+
<div class="thisclass">
|
26
|
+
<h1>Constants</h1>
|
27
|
+
<dl>
|
28
|
+
|
29
|
+
<dt id="ATTRIBUTES-constant">ATTRIBUTES</dt>
|
30
|
+
<dd>BASE_ATTRIBUTES | [:summary, :width, :border, :frame, :rules, :cellspacing, :cellpadding, :align, :bgcolor]</dd>
|
31
|
+
|
32
|
+
<dt id="DEFAULT_HOW-constant">DEFAULT_HOW</dt>
|
33
|
+
<dd>:id</dd>
|
34
|
+
|
35
|
+
<dt id="TAGS-constant">TAGS</dt>
|
36
|
+
<dd>[ Identifier.new('table') ]</dd>
|
37
|
+
|
38
|
+
</dl>
|
39
|
+
</div>
|
40
|
+
<div class="inherited">
|
41
|
+
|
42
|
+
<div>
|
43
|
+
<h1>Constants Inherited from <a title="Celerity::Element" href="Element.html">Celerity::Element</a></h1>
|
44
|
+
<p><span class='name'><a title="BASE_ATTRIBUTES" href="Element.html#BASE_ATTRIBUTES-constant">BASE_ATTRIBUTES</a></span>, <span class='name'><a title="CELLHALIGN_ATTRIBUTES" href="Element.html#CELLHALIGN_ATTRIBUTES-constant">CELLHALIGN_ATTRIBUTES</a></span>, <span class='name'><a title="CELLVALIGN_ATTRIBUTES" href="Element.html#CELLVALIGN_ATTRIBUTES-constant">CELLVALIGN_ATTRIBUTES</a></span>, <span class='name'><a title="HTML_401_TRANSITIONAL" href="Element.html#HTML_401_TRANSITIONAL-constant">HTML_401_TRANSITIONAL</a></span>, <span class='name'><a title="TO_S_SIZE" href="Element.html#TO_S_SIZE-constant">TO_S_SIZE</a></span></p>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
</div>
|
48
|
+
<div class="clear"></div>
|
49
|
+
</div><div class="section constructor">
|
50
|
+
<h1>Constructor Summary</h1>
|
51
|
+
<p class="inherited_msg">
|
52
|
+
This class inherits a constructor from <a title="Celerity::Element" href="Element.html#initialize-instance_method">Celerity::Element</a>.
|
53
|
+
</p>
|
54
|
+
</div><div class="section methodmissing">
|
55
|
+
<h1>Dynamic Method Handling</h1>
|
56
|
+
|
57
|
+
<p class="note">
|
58
|
+
This class handles dynamic methods through the <tt>method_missing</tt> method
|
59
|
+
|
60
|
+
in the class <a title="Celerity::Element" href="Element.html">Celerity::Element</a>
|
61
|
+
|
62
|
+
</p>
|
63
|
+
|
64
|
+
<div id="method_missing-instance_method" class="section method">
|
65
|
+
<div class="details_title">
|
66
|
+
<div class='section methodsignature'>
|
67
|
+
<tt class='def'>
|
68
|
+
<span class='visibility'>public</span>
|
69
|
+
<span class='return_types'><tt><a title="String" href="../String.html">String</a></tt></span>
|
70
|
+
<span class='name'>method_missing</span><span class='args'>(meth, *args, &blk)</span>
|
71
|
+
<span class='block'></span>
|
72
|
+
</tt>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
</div><div class="section docstring">
|
76
|
+
<p>
|
77
|
+
Dynamically get element attributes.
|
78
|
+
</p>
|
79
|
+
|
80
|
+
</div><div class="section tags">
|
81
|
+
<h2>Meta Tags</h2>
|
82
|
+
<div class="param">
|
83
|
+
<h3>Parameters:</h3>
|
84
|
+
<dl>
|
85
|
+
|
86
|
+
</dl>
|
87
|
+
</div><div class="return">
|
88
|
+
<h3>Returns:</h3>
|
89
|
+
<dl>
|
90
|
+
|
91
|
+
<dt>
|
92
|
+
|
93
|
+
<span class='type'>[<tt><a title="String" href="../String.html">String</a></tt>]</span>
|
94
|
+
|
95
|
+
|
96
|
+
<span class='name'></span>
|
97
|
+
|
98
|
+
|
99
|
+
</dt>
|
100
|
+
<dd>
|
101
|
+
<span class='desc'><p>
|
102
|
+
The resulting attribute.
|
103
|
+
</p>
|
104
|
+
</span>
|
105
|
+
</dd>
|
106
|
+
|
107
|
+
</dl>
|
108
|
+
</div>
|
109
|
+
<div class="raise">
|
110
|
+
<h3>Raises:</h3>
|
111
|
+
<dl>
|
112
|
+
|
113
|
+
<dt>
|
114
|
+
|
115
|
+
<span class='type'>[<tt>NoMethodError</tt>]</span>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
</dt>
|
120
|
+
<dd>
|
121
|
+
<span class='desc'><p>
|
122
|
+
if the element doesn’t support this attribute.
|
123
|
+
</p>
|
124
|
+
</span>
|
125
|
+
</dd>
|
126
|
+
|
127
|
+
</dl>
|
128
|
+
</div>
|
129
|
+
<div class="see">
|
130
|
+
<h3>See Also:</h3>
|
131
|
+
<dl>
|
132
|
+
<dt></dt>
|
133
|
+
<dd>
|
134
|
+
<span class='desc'>
|
135
|
+
<tt>ATTRIBUTES constant for a list of valid methods for a given element.</tt>
|
136
|
+
</span>
|
137
|
+
</dd>
|
138
|
+
</dl>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
</div><div class="section source">
|
142
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
143
|
+
<div class="source_code">
|
144
|
+
<table>
|
145
|
+
<tr>
|
146
|
+
<td>
|
147
|
+
<pre class="lines">
|
148
|
+
|
149
|
+
|
150
|
+
235
|
151
|
+
236
|
152
|
+
237
|
153
|
+
238
|
154
|
+
239
|
155
|
+
240
|
156
|
+
241
|
157
|
+
242
|
158
|
+
243
|
159
|
+
244
|
160
|
+
245</pre>
|
161
|
+
</td>
|
162
|
+
<td>
|
163
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/element.rb', line 235</span>
|
164
|
+
|
165
|
+
<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='blk identifier id'>blk</span><span class='rparen token'>)</span>
|
166
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
167
|
+
|
168
|
+
<span class='meth identifier id'>meth</span> <span class='assign token'>=</span> <span class='selector_to_attribute identifier id'>selector_to_attribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span>
|
169
|
+
|
170
|
+
<span class='if if kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='colon2 op'>::</span><span class='ATTRIBUTES constant id'>ATTRIBUTES</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span> <span class='orop op'>||</span> <span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span> <span class='eq op'>==</span> <span class='Element constant id'>Element</span> <span class='andop op'>&&</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='hasAttribute identifier id'>hasAttribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
171
|
+
<span class='return return kw'>return</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getAttribute identifier id'>getAttribute</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rparen token'>)</span>
|
172
|
+
<span class='end end kw'>end</span>
|
173
|
+
<span class='Log constant id'>Log</span><span class='dot token'>.</span><span class='warn identifier id'>warn</span> <span class='dstring node'>"Element\#method_missing calling super with #{meth.inspect}"</span>
|
174
|
+
<span class='super super kw'>super</span>
|
175
|
+
<span class='end end kw'>end</span>
|
176
|
+
</pre>
|
177
|
+
</td>
|
178
|
+
</tr>
|
179
|
+
</table>
|
180
|
+
</div>
|
181
|
+
</div>
|
182
|
+
</div>
|
183
|
+
</div> <div class="section visibilitygroup public">
|
184
|
+
<h1>Public Visibility</h1>
|
185
|
+
<div class="section methodsummary instance public">
|
186
|
+
<h1>Public Instance Method Summary</h1>
|
187
|
+
<table class="summary">
|
188
|
+
|
189
|
+
<tr>
|
190
|
+
<th class="signature">
|
191
|
+
<span class='name'><a title="#cells" href="#cells-instance_method">#cells</a></span><span class='args'></span>
|
192
|
+
<span class='block'></span>
|
193
|
+
|
194
|
+
</th>
|
195
|
+
<td class="docstring">
|
196
|
+
|
197
|
+
|
198
|
+
<p class='returns'>
|
199
|
+
Returns:
|
200
|
+
<span class='return_types'>
|
201
|
+
<tt><a title="Celerity::TableCells" href="TableCells.html">Celerity::TableCells</a></tt>
|
202
|
+
</span>
|
203
|
+
</p>
|
204
|
+
|
205
|
+
</td>
|
206
|
+
</tr>
|
207
|
+
|
208
|
+
<tr>
|
209
|
+
<th class="signature">
|
210
|
+
<span class='name'><a title="#child_cell" href="#child_cell-instance_method">#child_cell</a></span><span class='args'>(index)</span>
|
211
|
+
<span class='block'></span>
|
212
|
+
|
213
|
+
</th>
|
214
|
+
<td class="docstring">
|
215
|
+
<p>
|
216
|
+
Returns the TableCell at the given index (1-indexed).
|
217
|
+
</p>
|
218
|
+
|
219
|
+
|
220
|
+
<p class='returns'>
|
221
|
+
Returns:
|
222
|
+
<span class='return_types'>
|
223
|
+
<tt><a title="Celerity::TableCell" href="TableCell.html">Celerity::TableCell</a></tt>
|
224
|
+
</span>
|
225
|
+
</p>
|
226
|
+
|
227
|
+
</td>
|
228
|
+
</tr>
|
229
|
+
|
230
|
+
<tr>
|
231
|
+
<th class="signature">
|
232
|
+
<span class='name'><a title="#child_row" href="#child_row-instance_method">#child_row</a></span><span class='args'>(index)</span>
|
233
|
+
<span class='block'></span>
|
234
|
+
|
235
|
+
<span class='alias'>#[]</span>
|
236
|
+
|
237
|
+
</th>
|
238
|
+
<td class="docstring">
|
239
|
+
<p>
|
240
|
+
Returns the TableRow at the given index (1-indexed).
|
241
|
+
</p>
|
242
|
+
|
243
|
+
|
244
|
+
<p class='returns'>
|
245
|
+
Returns:
|
246
|
+
<span class='return_types'>
|
247
|
+
<tt><a title="Celerity::TableRow" href="TableRow.html">Celerity::TableRow</a></tt>
|
248
|
+
</span>
|
249
|
+
</p>
|
250
|
+
|
251
|
+
</td>
|
252
|
+
</tr>
|
253
|
+
|
254
|
+
<tr>
|
255
|
+
<th class="signature">
|
256
|
+
<span class='name'><a title="#column_count" href="#column_count-instance_method">#column_count</a></span><span class='args'>(index = Celerity.index_offset)</span>
|
257
|
+
<span class='block'></span>
|
258
|
+
|
259
|
+
</th>
|
260
|
+
<td class="docstring">
|
261
|
+
<p>
|
262
|
+
Returns the number of columns on the row at the given index.
|
263
|
+
</p>
|
264
|
+
|
265
|
+
|
266
|
+
<p class='returns'>
|
267
|
+
Returns:
|
268
|
+
<span class='return_types'>
|
269
|
+
<tt>Fixnum</tt>
|
270
|
+
</span>
|
271
|
+
</p>
|
272
|
+
|
273
|
+
</td>
|
274
|
+
</tr>
|
275
|
+
|
276
|
+
<tr>
|
277
|
+
<th class="signature">
|
278
|
+
<span class='name'><a title="#column_values" href="#column_values-instance_method">#column_values</a></span><span class='args'>(column_number)</span>
|
279
|
+
<span class='block'></span>
|
280
|
+
|
281
|
+
</th>
|
282
|
+
<td class="docstring">
|
283
|
+
|
284
|
+
|
285
|
+
</td>
|
286
|
+
</tr>
|
287
|
+
|
288
|
+
<tr>
|
289
|
+
<th class="signature">
|
290
|
+
<span class='name'><a title="#each" href="#each-instance_method">#each</a></span><span class='args'></span>
|
291
|
+
<span class='block'>{|row| ... }</span>
|
292
|
+
|
293
|
+
</th>
|
294
|
+
<td class="docstring">
|
295
|
+
<p>
|
296
|
+
Iterates through each row in the table.
|
297
|
+
</p>
|
298
|
+
|
299
|
+
|
300
|
+
</td>
|
301
|
+
</tr>
|
302
|
+
|
303
|
+
<tr>
|
304
|
+
<th class="signature">
|
305
|
+
<span class='name'><a title="#locate" href="#locate-instance_method">#locate</a></span><span class='args'></span>
|
306
|
+
<span class='block'></span>
|
307
|
+
|
308
|
+
</th>
|
309
|
+
<td class="docstring">
|
310
|
+
|
311
|
+
|
312
|
+
</td>
|
313
|
+
</tr>
|
314
|
+
|
315
|
+
<tr>
|
316
|
+
<th class="signature">
|
317
|
+
<span class='name'><a title="#row_count" href="#row_count-instance_method">#row_count</a></span><span class='args'></span>
|
318
|
+
<span class='block'></span>
|
319
|
+
|
320
|
+
</th>
|
321
|
+
<td class="docstring">
|
322
|
+
<p>
|
323
|
+
The number of rows in the table.
|
324
|
+
</p>
|
325
|
+
|
326
|
+
|
327
|
+
<p class='returns'>
|
328
|
+
Returns:
|
329
|
+
<span class='return_types'>
|
330
|
+
<tt>Fixnum</tt>
|
331
|
+
</span>
|
332
|
+
</p>
|
333
|
+
|
334
|
+
</td>
|
335
|
+
</tr>
|
336
|
+
|
337
|
+
<tr>
|
338
|
+
<th class="signature">
|
339
|
+
<span class='name'><a title="#row_values" href="#row_values-instance_method">#row_values</a></span><span class='args'>(row_number)</span>
|
340
|
+
<span class='block'></span>
|
341
|
+
|
342
|
+
</th>
|
343
|
+
<td class="docstring">
|
344
|
+
|
345
|
+
|
346
|
+
</td>
|
347
|
+
</tr>
|
348
|
+
|
349
|
+
<tr>
|
350
|
+
<th class="signature">
|
351
|
+
<span class='name'><a title="#rows" href="#rows-instance_method">#rows</a></span><span class='args'></span>
|
352
|
+
<span class='block'></span>
|
353
|
+
|
354
|
+
</th>
|
355
|
+
<td class="docstring">
|
356
|
+
|
357
|
+
|
358
|
+
<p class='returns'>
|
359
|
+
Returns:
|
360
|
+
<span class='return_types'>
|
361
|
+
<tt><a title="Celerity::TableRows" href="TableRows.html">Celerity::TableRows</a></tt>
|
362
|
+
</span>
|
363
|
+
</p>
|
364
|
+
|
365
|
+
</td>
|
366
|
+
</tr>
|
367
|
+
|
368
|
+
<tr>
|
369
|
+
<th class="signature">
|
370
|
+
<span class='name'><a title="#to_a" href="#to_a-instance_method">#to_a</a></span><span class='args'></span>
|
371
|
+
<span class='block'></span>
|
372
|
+
|
373
|
+
</th>
|
374
|
+
<td class="docstring">
|
375
|
+
<p>
|
376
|
+
Returns the text of each cell in the the table as a two-dimensional array.
|
377
|
+
</p>
|
378
|
+
|
379
|
+
|
380
|
+
<p class='returns'>
|
381
|
+
Returns:
|
382
|
+
<span class='return_types'>
|
383
|
+
<tt>Array<Array<<a title="String" href="../String.html">String</a>>></tt>
|
384
|
+
</span>
|
385
|
+
</p>
|
386
|
+
|
387
|
+
</td>
|
388
|
+
</tr>
|
389
|
+
|
390
|
+
</table><div class="inherited">
|
391
|
+
|
392
|
+
<div>
|
393
|
+
<h1>Public Instance Methods Inherited from <a title="Celerity::Element" href="Element.html">Celerity::Element</a></h1>
|
394
|
+
<p><span class='name'><a title="assert_exists" href="Element.html#assert_exists-instance_method">assert_exists</a></span>, <span class='name'><a title="attribute_string" href="Element.html#attribute_string-instance_method">attribute_string</a></span>, <span class='name'><a title="attribute_value" href="Element.html#attribute_value-instance_method">attribute_value</a></span>, <span class='name'><a title="exists?" href="Element.html#exists%3F-instance_method">exists?</a></span>, <span class='name'><a title="fire_event" href="Element.html#fire_event-instance_method">fire_event</a></span>, <span class='name'><a title="focus" href="Element.html#focus-instance_method">focus</a></span>, <span class='name'><a title="methods" href="Element.html#methods-instance_method">methods</a></span>, <span class='name'><a title="object" href="Element.html#object-instance_method">object</a></span>, <span class='name'><a title="parent" href="Element.html#parent-instance_method">parent</a></span>, <span class='name'><a title="respond_to?" href="Element.html#respond_to%3F-instance_method">respond_to?</a></span>, <span class='name'><a title="text" href="Element.html#text-instance_method">text</a></span>, <span class='name'><a title="to_s" href="Element.html#to_s-instance_method">to_s</a></span>, <span class='name'><a title="to_xml" href="Element.html#to_xml-instance_method">to_xml</a></span>, <span class='name'><a title="visible?" href="Element.html#visible%3F-instance_method">visible?</a></span>, <span class='name'><a title="xpath" href="Element.html#xpath-instance_method">xpath</a></span></p>
|
395
|
+
</div>
|
396
|
+
|
397
|
+
</div>
|
398
|
+
<div class="clear"></div><div class="included">
|
399
|
+
|
400
|
+
<div>
|
401
|
+
<h1>Public Instance Methods Included from <a title="Celerity::ClickableElement" href="Table/ClickableElement.html">Celerity::ClickableElement</a></h1>
|
402
|
+
<p><span class='name'><a title="click" href="ClickableElement.html#click-instance_method">click</a></span>, <span class='name'><a title="click_and_attach" href="ClickableElement.html#click_and_attach-instance_method">click_and_attach</a></span>, <span class='name'><a title="double_click" href="ClickableElement.html#double_click-instance_method">double_click</a></span>, <span class='name'><a title="download" href="ClickableElement.html#download-instance_method">download</a></span>, <span class='name'><a title="right_click" href="ClickableElement.html#right_click-instance_method">right_click</a></span></p>
|
403
|
+
</div>
|
404
|
+
|
405
|
+
<div>
|
406
|
+
<h1>Public Instance Methods Included from <a title="Celerity::Container" href="Table/Container.html">Celerity::Container</a></h1>
|
407
|
+
<p><span class='name'><a title="area" href="Container.html#area-instance_method">area</a></span>, <span class='name'><a title="areas" href="Container.html#areas-instance_method">areas</a></span>, <span class='name'><a title="button" href="Container.html#button-instance_method">button</a></span>, <span class='name'><a title="buttons" href="Container.html#buttons-instance_method">buttons</a></span>, <span class='name'><a title="cell" href="Container.html#cell-instance_method">cell</a></span>, <span class='name'><a title="check_box" href="Container.html#check_box-instance_method">check_box</a></span>, <span class='name'><a title="checkboxes" href="Container.html#checkboxes-instance_method">checkboxes</a></span>, <span class='name'><a title="container" href="Container.html#container-instance_method">container</a></span>, <span class='name'><a title="contains_text" href="Container.html#contains_text-instance_method">contains_text</a></span>, <span class='name'><a title="dd" href="Container.html#dd-instance_method">dd</a></span>, <span class='name'><a title="dds" href="Container.html#dds-instance_method">dds</a></span>, <span class='name'><a title="div" href="Container.html#div-instance_method">div</a></span>, <span class='name'><a title="divs" href="Container.html#divs-instance_method">divs</a></span>, <span class='name'><a title="dl" href="Container.html#dl-instance_method">dl</a></span>, <span class='name'><a title="dls" href="Container.html#dls-instance_method">dls</a></span>, <span class='name'><a title="dt" href="Container.html#dt-instance_method">dt</a></span>, <span class='name'><a title="dts" href="Container.html#dts-instance_method">dts</a></span>, <span class='name'><a title="em" href="Container.html#em-instance_method">em</a></span>, <span class='name'><a title="ems" href="Container.html#ems-instance_method">ems</a></span>, <span class='name'><a title="file_field" href="Container.html#file_field-instance_method">file_field</a></span>, <span class='name'><a title="file_fields" href="Container.html#file_fields-instance_method">file_fields</a></span>, <span class='name'><a title="form" href="Container.html#form-instance_method">form</a></span>, <span class='name'><a title="forms" href="Container.html#forms-instance_method">forms</a></span>, <span class='name'><a title="frame" href="Container.html#frame-instance_method">frame</a></span>, <span class='name'><a title="frames" href="Container.html#frames-instance_method">frames</a></span>, <span class='name'><a title="h1" href="Container.html#h1-instance_method">h1</a></span>, <span class='name'><a title="h1s" href="Container.html#h1s-instance_method">h1s</a></span>, <span class='name'><a title="h2" href="Container.html#h2-instance_method">h2</a></span>, <span class='name'><a title="h2s" href="Container.html#h2s-instance_method">h2s</a></span>, <span class='name'><a title="h3" href="Container.html#h3-instance_method">h3</a></span>, <span class='name'><a title="h3s" href="Container.html#h3s-instance_method">h3s</a></span>, <span class='name'><a title="h4" href="Container.html#h4-instance_method">h4</a></span>, <span class='name'><a title="h4s" href="Container.html#h4s-instance_method">h4s</a></span>, <span class='name'><a title="h5" href="Container.html#h5-instance_method">h5</a></span>, <span class='name'><a title="h5s" href="Container.html#h5s-instance_method">h5s</a></span>, <span class='name'><a title="h6" href="Container.html#h6-instance_method">h6</a></span>, <span class='name'><a title="h6s" href="Container.html#h6s-instance_method">h6s</a></span>, <span class='name'><a title="hidden" href="Container.html#hidden-instance_method">hidden</a></span>, <span class='name'><a title="hiddens" href="Container.html#hiddens-instance_method">hiddens</a></span>, <span class='name'><a title="image" href="Container.html#image-instance_method">image</a></span>, <span class='name'><a title="images" href="Container.html#images-instance_method">images</a></span>, <span class='name'><a title="inspect" href="Container.html#inspect-instance_method">inspect</a></span>, <span class='name'><a title="label" href="Container.html#label-instance_method">label</a></span>, <span class='name'><a title="labels" href="Container.html#labels-instance_method">labels</a></span>, <span class='name'><a title="li" href="Container.html#li-instance_method">li</a></span>, <span class='name'><a title="link" href="Container.html#link-instance_method">link</a></span>, <span class='name'><a title="links" href="Container.html#links-instance_method">links</a></span>, <span class='name'><a title="lis" href="Container.html#lis-instance_method">lis</a></span>, <span class='name'><a title="map" href="Container.html#map-instance_method">map</a></span>, <span class='name'><a title="maps" href="Container.html#maps-instance_method">maps</a></span>, <span class='name'><a title="meta" href="Container.html#meta-instance_method">meta</a></span>, <span class='name'><a title="metas" href="Container.html#metas-instance_method">metas</a></span>, <span class='name'><a title="ol" href="Container.html#ol-instance_method">ol</a></span>, <span class='name'><a title="ols" href="Container.html#ols-instance_method">ols</a></span>, <span class='name'><a title="option" href="Container.html#option-instance_method">option</a></span>, <span class='name'><a title="p" href="Container.html#p-instance_method">p</a></span>, <span class='name'><a title="pre" href="Container.html#pre-instance_method">pre</a></span>, <span class='name'><a title="pres" href="Container.html#pres-instance_method">pres</a></span>, <span class='name'><a title="ps" href="Container.html#ps-instance_method">ps</a></span>, <span class='name'><a title="radio" href="Container.html#radio-instance_method">radio</a></span>, <span class='name'><a title="radios" href="Container.html#radios-instance_method">radios</a></span>, <span class='name'><a title="row" href="Container.html#row-instance_method">row</a></span>, <span class='name'><a title="select_list" href="Container.html#select_list-instance_method">select_list</a></span>, <span class='name'><a title="select_lists" href="Container.html#select_lists-instance_method">select_lists</a></span>, <span class='name'><a title="span" href="Container.html#span-instance_method">span</a></span>, <span class='name'><a title="spans" href="Container.html#spans-instance_method">spans</a></span>, <span class='name'><a title="strong" href="Container.html#strong-instance_method">strong</a></span>, <span class='name'><a title="strongs" href="Container.html#strongs-instance_method">strongs</a></span>, <span class='name'><a title="table" href="Container.html#table-instance_method">table</a></span>, <span class='name'><a title="tables" href="Container.html#tables-instance_method">tables</a></span>, <span class='name'><a title="tbodies" href="Container.html#tbodies-instance_method">tbodies</a></span>, <span class='name'><a title="tbody" href="Container.html#tbody-instance_method">tbody</a></span>, <span class='name'><a title="text_field" href="Container.html#text_field-instance_method">text_field</a></span>, <span class='name'><a title="text_fields" href="Container.html#text_fields-instance_method">text_fields</a></span>, <span class='name'><a title="tfoot" href="Container.html#tfoot-instance_method">tfoot</a></span>, <span class='name'><a title="tfoots" href="Container.html#tfoots-instance_method">tfoots</a></span>, <span class='name'><a title="th" href="Container.html#th-instance_method">th</a></span>, <span class='name'><a title="thead" href="Container.html#thead-instance_method">thead</a></span>, <span class='name'><a title="theads" href="Container.html#theads-instance_method">theads</a></span>, <span class='name'><a title="ths" href="Container.html#ths-instance_method">ths</a></span>, <span class='name'><a title="ul" href="Container.html#ul-instance_method">ul</a></span>, <span class='name'><a title="uls" href="Container.html#uls-instance_method">uls</a></span>, <span class='name'><a title="update_page" href="Container.html#update_page-instance_method">update_page</a></span></p>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
</div>
|
411
|
+
<div class="clear"></div>
|
412
|
+
</div>
|
413
|
+
<div class="section methoddetails instance public">
|
414
|
+
<h1>Public Instance Method Details</h1>
|
415
|
+
|
416
|
+
<div class="method">
|
417
|
+
<div class="method_header">
|
418
|
+
<h3>cells</h3>
|
419
|
+
</div><div id="cells-instance_method" class="section method">
|
420
|
+
<div class="details_title">
|
421
|
+
<div class='section methodsignature'>
|
422
|
+
<tt class='def'>
|
423
|
+
<span class='visibility'>public</span>
|
424
|
+
<span class='return_types'><tt><a title="Celerity::TableCells" href="TableCells.html">Celerity::TableCells</a></tt></span>
|
425
|
+
<span class='name'>cells</span><span class='args'></span>
|
426
|
+
<span class='block'></span>
|
427
|
+
</tt>
|
428
|
+
</div>
|
429
|
+
|
430
|
+
</div><div class="section tags">
|
431
|
+
<h2>Meta Tags</h2>
|
432
|
+
<div class="param">
|
433
|
+
<h3>Parameters:</h3>
|
434
|
+
<dl>
|
435
|
+
|
436
|
+
</dl>
|
437
|
+
</div><div class="return">
|
438
|
+
<h3>Returns:</h3>
|
439
|
+
<dl>
|
440
|
+
|
441
|
+
<dt>
|
442
|
+
|
443
|
+
<span class='type'>[<tt><a title="Celerity::TableCells" href="TableCells.html">Celerity::TableCells</a></tt>]</span>
|
444
|
+
|
445
|
+
|
446
|
+
<span class='name'></span>
|
447
|
+
|
448
|
+
|
449
|
+
</dt>
|
450
|
+
<dd>
|
451
|
+
<span class='desc'></span>
|
452
|
+
</dd>
|
453
|
+
|
454
|
+
</dl>
|
455
|
+
</div>
|
456
|
+
|
457
|
+
</div><div class="section source">
|
458
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
459
|
+
<div class="source_code">
|
460
|
+
<table>
|
461
|
+
<tr>
|
462
|
+
<td>
|
463
|
+
<pre class="lines">
|
464
|
+
|
465
|
+
|
466
|
+
39
|
467
|
+
40
|
468
|
+
41
|
469
|
+
42</pre>
|
470
|
+
</td>
|
471
|
+
<td>
|
472
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 39</span>
|
473
|
+
|
474
|
+
<span class='def def kw'>def</span> <span class='cells identifier id'>cells</span>
|
475
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
476
|
+
<span class='TableCells constant id'>TableCells</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='symbol val'>:object</span><span class='comma token'>,</span> <span class='@cells ivar id'>@cells</span><span class='rparen token'>)</span>
|
477
|
+
<span class='end end kw'>end</span>
|
478
|
+
</pre>
|
479
|
+
</td>
|
480
|
+
</tr>
|
481
|
+
</table>
|
482
|
+
</div>
|
483
|
+
</div>
|
484
|
+
</div>
|
485
|
+
</div>
|
486
|
+
|
487
|
+
<div class="method">
|
488
|
+
<div class="method_header">
|
489
|
+
<h3>child_cell</h3>
|
490
|
+
</div><div id="child_cell-instance_method" class="section method">
|
491
|
+
<div class="details_title">
|
492
|
+
<div class='section methodsignature'>
|
493
|
+
<tt class='def'>
|
494
|
+
<span class='visibility'>public</span>
|
495
|
+
<span class='return_types'><tt><a title="Celerity::TableCell" href="TableCell.html">Celerity::TableCell</a></tt></span>
|
496
|
+
<span class='name'>child_cell</span><span class='args'>(index)</span>
|
497
|
+
<span class='block'></span>
|
498
|
+
</tt>
|
499
|
+
</div>
|
500
|
+
|
501
|
+
</div><div class="section docstring">
|
502
|
+
<p>
|
503
|
+
Returns the TableCell at the given index (1-indexed).
|
504
|
+
</p>
|
505
|
+
<p>
|
506
|
+
In a 10-column row, table.child_cell[11] will return the first cell on the
|
507
|
+
second row.
|
508
|
+
</p>
|
509
|
+
|
510
|
+
</div><div class="section tags">
|
511
|
+
<h2>Meta Tags</h2>
|
512
|
+
<div class="param">
|
513
|
+
<h3>Parameters:</h3>
|
514
|
+
<dl>
|
515
|
+
|
516
|
+
|
517
|
+
<dt>
|
518
|
+
<span class='type'>[<tt>Fixnum</tt>]</span>
|
519
|
+
<span class='name'>index</span>
|
520
|
+
|
521
|
+
</dt>
|
522
|
+
<dd>
|
523
|
+
<span class='desc'><p>
|
524
|
+
The index of the wanted cell, 1-indexed.
|
525
|
+
</p>
|
526
|
+
</span>
|
527
|
+
</dd>
|
528
|
+
|
529
|
+
|
530
|
+
</dl>
|
531
|
+
</div><div class="return">
|
532
|
+
<h3>Returns:</h3>
|
533
|
+
<dl>
|
534
|
+
|
535
|
+
<dt>
|
536
|
+
|
537
|
+
<span class='type'>[<tt><a title="Celerity::TableCell" href="TableCell.html">Celerity::TableCell</a></tt>]</span>
|
538
|
+
|
539
|
+
|
540
|
+
<span class='name'></span>
|
541
|
+
|
542
|
+
|
543
|
+
</dt>
|
544
|
+
<dd>
|
545
|
+
<span class='desc'></span>
|
546
|
+
</dd>
|
547
|
+
|
548
|
+
</dl>
|
549
|
+
</div>
|
550
|
+
<div class="raise">
|
551
|
+
<h3>Raises:</h3>
|
552
|
+
<dl>
|
553
|
+
|
554
|
+
<dt>
|
555
|
+
|
556
|
+
<span class='type'>[<tt><a title="Celerity::Exception::UnknownCellException" href="Exception/UnknownCellException.html">Celerity::Exception::UnknownCellException</a></tt>]</span>
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
</dt>
|
561
|
+
<dd>
|
562
|
+
<span class='desc'></span>
|
563
|
+
</dd>
|
564
|
+
|
565
|
+
</dl>
|
566
|
+
</div>
|
567
|
+
|
568
|
+
</div><div class="section source">
|
569
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
570
|
+
<div class="source_code">
|
571
|
+
<table>
|
572
|
+
<tr>
|
573
|
+
<td>
|
574
|
+
<pre class="lines">
|
575
|
+
|
576
|
+
|
577
|
+
86
|
578
|
+
87
|
579
|
+
88
|
580
|
+
89
|
581
|
+
90
|
582
|
+
91
|
583
|
+
92
|
584
|
+
93</pre>
|
585
|
+
</td>
|
586
|
+
<td>
|
587
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 86</span>
|
588
|
+
|
589
|
+
<span class='def def kw'>def</span> <span class='child_cell identifier id'>child_cell</span><span class='lparen token'>(</span><span class='index identifier id'>index</span><span class='rparen token'>)</span>
|
590
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
591
|
+
|
592
|
+
<span class='if if kw'>if</span> <span class='lparen token'>(</span><span class='index identifier id'>index</span> <span class='minus op'>-</span> <span class='Celerity.index_offset constant id'>Celerity.index_offset</span><span class='rparen token'>)</span> <span class='geq op'>>=</span> <span class='@cells ivar id'>@cells</span><span class='dot token'>.</span><span class='length identifier id'>length</span>
|
593
|
+
<span class='raise identifier id'>raise</span> <span class='UnknownCellException constant id'>UnknownCellException</span><span class='comma token'>,</span> <span class='dstring node'>"Unable to locate a cell at index #{index}"</span>
|
594
|
+
<span class='end end kw'>end</span>
|
595
|
+
<span class='TableCell constant id'>TableCell</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='symbol val'>:object</span><span class='comma token'>,</span> <span class='@cells ivar id'>@cells</span><span class='lbrack token'>[</span><span class='index identifier id'>index</span> <span class='minus op'>-</span> <span class='Celerity.index_offset constant id'>Celerity.index_offset</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
|
596
|
+
<span class='end end kw'>end</span>
|
597
|
+
</pre>
|
598
|
+
</td>
|
599
|
+
</tr>
|
600
|
+
</table>
|
601
|
+
</div>
|
602
|
+
</div>
|
603
|
+
</div>
|
604
|
+
</div>
|
605
|
+
|
606
|
+
<div class="method">
|
607
|
+
<div class="method_header">
|
608
|
+
<h3>child_row</h3>
|
609
|
+
</div><div id="child_row-instance_method" class="section method">
|
610
|
+
<div class="details_title">
|
611
|
+
<div class='section methodsignature'>
|
612
|
+
<tt class='def'>
|
613
|
+
<span class='visibility'>public</span>
|
614
|
+
<span class='return_types'><tt><a title="Celerity::TableRow" href="TableRow.html">Celerity::TableRow</a></tt></span>
|
615
|
+
<span class='name'>child_row</span><span class='args'>(index)</span>
|
616
|
+
<span class='block'></span>
|
617
|
+
</tt>
|
618
|
+
</div>
|
619
|
+
<p class="aliases">
|
620
|
+
<span class="aka">Also known as:</span>
|
621
|
+
|
622
|
+
<tt id="%5B%5D-instance_method">[]</tt>
|
623
|
+
|
624
|
+
</p>
|
625
|
+
</div><div class="section docstring">
|
626
|
+
<p>
|
627
|
+
Returns the TableRow at the given index (1-indexed).
|
628
|
+
</p>
|
629
|
+
<pre class="code">
|
630
|
+
<span class='browser identifier id'>browser</span><span class='dot token'>.</span><span class='table identifier id'>table</span><span class='lparen token'>(</span><span class='symbol val'>:foo</span><span class='comma token'>,</span> <span class='string val'>'bar'</span><span class='rparen token'>)</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='comment val'># => #<TableRow...></span>
|
631
|
+
<span class='browser identifier id'>browser</span><span class='dot token'>.</span><span class='table identifier id'>table</span><span class='lparen token'>(</span><span class='symbol val'>:foo</span><span class='comma token'>,</span> <span class='string val'>'bar'</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='child_row identifier id'>child_row</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span> <span class='comment val'># => #<TableRow...></span>
|
632
|
+
</pre>
|
633
|
+
|
634
|
+
</div><div class="section tags">
|
635
|
+
<h2>Meta Tags</h2>
|
636
|
+
<div class="param">
|
637
|
+
<h3>Parameters:</h3>
|
638
|
+
<dl>
|
639
|
+
|
640
|
+
|
641
|
+
<dt>
|
642
|
+
<span class='type'>[<tt>Fixnum</tt>]</span>
|
643
|
+
<span class='name'>index</span>
|
644
|
+
|
645
|
+
</dt>
|
646
|
+
<dd>
|
647
|
+
<span class='desc'><p>
|
648
|
+
The index of the wanted row, 1-indexed.
|
649
|
+
</p>
|
650
|
+
</span>
|
651
|
+
</dd>
|
652
|
+
|
653
|
+
|
654
|
+
</dl>
|
655
|
+
</div><div class="return">
|
656
|
+
<h3>Returns:</h3>
|
657
|
+
<dl>
|
658
|
+
|
659
|
+
<dt>
|
660
|
+
|
661
|
+
<span class='type'>[<tt><a title="Celerity::TableRow" href="TableRow.html">Celerity::TableRow</a></tt>]</span>
|
662
|
+
|
663
|
+
|
664
|
+
<span class='name'></span>
|
665
|
+
|
666
|
+
|
667
|
+
</dt>
|
668
|
+
<dd>
|
669
|
+
<span class='desc'></span>
|
670
|
+
</dd>
|
671
|
+
|
672
|
+
</dl>
|
673
|
+
</div>
|
674
|
+
<div class="raise">
|
675
|
+
<h3>Raises:</h3>
|
676
|
+
<dl>
|
677
|
+
|
678
|
+
<dt>
|
679
|
+
|
680
|
+
<span class='type'>[<tt><a title="Celerity::Exception::UnknownRowException" href="Exception/UnknownRowException.html">Celerity::Exception::UnknownRowException</a></tt>]</span>
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
</dt>
|
685
|
+
<dd>
|
686
|
+
<span class='desc'></span>
|
687
|
+
</dd>
|
688
|
+
|
689
|
+
</dl>
|
690
|
+
</div>
|
691
|
+
|
692
|
+
</div><div class="section source">
|
693
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
694
|
+
<div class="source_code">
|
695
|
+
<table>
|
696
|
+
<tr>
|
697
|
+
<td>
|
698
|
+
<pre class="lines">
|
699
|
+
|
700
|
+
|
701
|
+
65
|
702
|
+
66
|
703
|
+
67
|
704
|
+
68
|
705
|
+
69
|
706
|
+
70
|
707
|
+
71
|
708
|
+
72
|
709
|
+
73</pre>
|
710
|
+
</td>
|
711
|
+
<td>
|
712
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 65</span>
|
713
|
+
|
714
|
+
<span class='def def kw'>def</span> <span class='child_row identifier id'>child_row</span><span class='lparen token'>(</span><span class='index identifier id'>index</span><span class='rparen token'>)</span>
|
715
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
716
|
+
|
717
|
+
<span class='if if kw'>if</span> <span class='lparen token'>(</span><span class='index identifier id'>index</span> <span class='minus op'>-</span> <span class='Celerity.index_offset constant id'>Celerity.index_offset</span><span class='rparen token'>)</span> <span class='geq op'>>=</span> <span class='@rows ivar id'>@rows</span><span class='dot token'>.</span><span class='length identifier id'>length</span>
|
718
|
+
<span class='raise identifier id'>raise</span> <span class='UnknownRowException constant id'>UnknownRowException</span><span class='comma token'>,</span> <span class='dstring node'>"Unable to locate a row at index #{index}"</span>
|
719
|
+
<span class='end end kw'>end</span>
|
720
|
+
|
721
|
+
<span class='TableRow constant id'>TableRow</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='symbol val'>:object</span><span class='comma token'>,</span> <span class='@rows ivar id'>@rows</span><span class='lbrack token'>[</span><span class='index identifier id'>index</span> <span class='minus op'>-</span> <span class='Celerity.index_offset constant id'>Celerity.index_offset</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
|
722
|
+
<span class='end end kw'>end</span>
|
723
|
+
</pre>
|
724
|
+
</td>
|
725
|
+
</tr>
|
726
|
+
</table>
|
727
|
+
</div>
|
728
|
+
</div>
|
729
|
+
</div>
|
730
|
+
</div>
|
731
|
+
|
732
|
+
<div class="method">
|
733
|
+
<div class="method_header">
|
734
|
+
<h3>column_count</h3>
|
735
|
+
</div><div id="column_count-instance_method" class="section method">
|
736
|
+
<div class="details_title">
|
737
|
+
<div class='section methodsignature'>
|
738
|
+
<tt class='def'>
|
739
|
+
<span class='visibility'>public</span>
|
740
|
+
<span class='return_types'><tt>Fixnum</tt></span>
|
741
|
+
<span class='name'>column_count</span><span class='args'>(index = Celerity.index_offset)</span>
|
742
|
+
<span class='block'></span>
|
743
|
+
</tt>
|
744
|
+
</div>
|
745
|
+
|
746
|
+
</div><div class="section docstring">
|
747
|
+
<p>
|
748
|
+
Returns the number of columns on the row at the given index. (1-indexed)
|
749
|
+
Default is the number of columns on the first row
|
750
|
+
</p>
|
751
|
+
|
752
|
+
</div><div class="section tags">
|
753
|
+
<h2>Meta Tags</h2>
|
754
|
+
<div class="param">
|
755
|
+
<h3>Parameters:</h3>
|
756
|
+
<dl>
|
757
|
+
|
758
|
+
|
759
|
+
<dt>
|
760
|
+
<span class='type'>[<tt>Fixnum</tt>]</span>
|
761
|
+
<span class='name'>index</span>
|
762
|
+
|
763
|
+
<em class="default">(defaults to: <tt>Celerity.index_offset</tt>)</em>
|
764
|
+
|
765
|
+
</dt>
|
766
|
+
<dd>
|
767
|
+
<span class='desc'><p>
|
768
|
+
An index, 1-indexed (optional).
|
769
|
+
</p>
|
770
|
+
</span>
|
771
|
+
</dd>
|
772
|
+
|
773
|
+
|
774
|
+
</dl>
|
775
|
+
</div><div class="return">
|
776
|
+
<h3>Returns:</h3>
|
777
|
+
<dl>
|
778
|
+
|
779
|
+
<dt>
|
780
|
+
|
781
|
+
<span class='type'>[<tt>Fixnum</tt>]</span>
|
782
|
+
|
783
|
+
|
784
|
+
<span class='name'></span>
|
785
|
+
|
786
|
+
|
787
|
+
</dt>
|
788
|
+
<dd>
|
789
|
+
<span class='desc'></span>
|
790
|
+
</dd>
|
791
|
+
|
792
|
+
</dl>
|
793
|
+
</div>
|
794
|
+
|
795
|
+
</div><div class="section source">
|
796
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
797
|
+
<div class="source_code">
|
798
|
+
<table>
|
799
|
+
<tr>
|
800
|
+
<td>
|
801
|
+
<pre class="lines">
|
802
|
+
|
803
|
+
|
804
|
+
112
|
805
|
+
113
|
806
|
+
114
|
807
|
+
115</pre>
|
808
|
+
</td>
|
809
|
+
<td>
|
810
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 112</span>
|
811
|
+
|
812
|
+
<span class='def def kw'>def</span> <span class='column_count identifier id'>column_count</span><span class='lparen token'>(</span><span class='index identifier id'>index</span> <span class='assign token'>=</span> <span class='Celerity.index_offset constant id'>Celerity.index_offset</span><span class='rparen token'>)</span>
|
813
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
814
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getRow identifier id'>getRow</span><span class='lparen token'>(</span><span class='index identifier id'>index</span> <span class='minus op'>-</span> <span class='Celerity.index_offset constant id'>Celerity.index_offset</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='getCells identifier id'>getCells</span><span class='dot token'>.</span><span class='length identifier id'>length</span>
|
815
|
+
<span class='end end kw'>end</span>
|
816
|
+
</pre>
|
817
|
+
</td>
|
818
|
+
</tr>
|
819
|
+
</table>
|
820
|
+
</div>
|
821
|
+
</div>
|
822
|
+
</div>
|
823
|
+
</div>
|
824
|
+
|
825
|
+
<div class="method">
|
826
|
+
<div class="method_header">
|
827
|
+
<h3>column_values</h3>
|
828
|
+
</div><div id="column_values-instance_method" class="section method">
|
829
|
+
<div class="details_title">
|
830
|
+
<div class='section methodsignature'>
|
831
|
+
<tt class='def'>
|
832
|
+
<span class='visibility'>public</span>
|
833
|
+
<span class='return_types'></span>
|
834
|
+
<span class='name'>column_values</span><span class='args'>(column_number)</span>
|
835
|
+
<span class='block'></span>
|
836
|
+
</tt>
|
837
|
+
</div>
|
838
|
+
|
839
|
+
</div><div class="section source">
|
840
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
841
|
+
<div class="source_code">
|
842
|
+
<table>
|
843
|
+
<tr>
|
844
|
+
<td>
|
845
|
+
<pre class="lines">
|
846
|
+
|
847
|
+
|
848
|
+
132
|
849
|
+
133
|
850
|
+
134</pre>
|
851
|
+
</td>
|
852
|
+
<td>
|
853
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 132</span>
|
854
|
+
|
855
|
+
<span class='def def kw'>def</span> <span class='column_values identifier id'>column_values</span><span class='lparen token'>(</span><span class='column_number identifier id'>column_number</span><span class='rparen token'>)</span>
|
856
|
+
<span class='lparen token'>(</span><span class='float val'>1</span><span class='dot2 op'>..</span><span class='row_count identifier id'>row_count</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='index identifier id'>index</span><span class='bitor op'>|</span> <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='index identifier id'>index</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='column_number identifier id'>column_number</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='text identifier id'>text</span> <span class='rbrace token'>}</span>
|
857
|
+
<span class='end end kw'>end</span>
|
858
|
+
</pre>
|
859
|
+
</td>
|
860
|
+
</tr>
|
861
|
+
</table>
|
862
|
+
</div>
|
863
|
+
</div>
|
864
|
+
</div>
|
865
|
+
</div>
|
866
|
+
|
867
|
+
<div class="method">
|
868
|
+
<div class="method_header">
|
869
|
+
<h3>each</h3>
|
870
|
+
</div><div id="each-instance_method" class="section method">
|
871
|
+
<div class="details_title">
|
872
|
+
<div class='section methodsignature'>
|
873
|
+
<tt class='def'>
|
874
|
+
<span class='visibility'>public</span>
|
875
|
+
<span class='return_types'></span>
|
876
|
+
<span class='name'>each</span><span class='args'></span>
|
877
|
+
<span class='block'>{|row| ... }</span>
|
878
|
+
</tt>
|
879
|
+
</div>
|
880
|
+
|
881
|
+
</div><div class="section docstring">
|
882
|
+
<p>
|
883
|
+
Iterates through each row in the table.
|
884
|
+
</p>
|
885
|
+
|
886
|
+
</div><div class="section tags">
|
887
|
+
<h2>Meta Tags</h2>
|
888
|
+
<div class="param">
|
889
|
+
<h3>Parameters:</h3>
|
890
|
+
<dl>
|
891
|
+
|
892
|
+
</dl>
|
893
|
+
</div><div class="yieldparam">
|
894
|
+
<h3>Yield Parameters:</h3>
|
895
|
+
<dl>
|
896
|
+
|
897
|
+
<dt>
|
898
|
+
|
899
|
+
<span class='type'>[<tt><a title="Celerity::TableRow" href="TableRow.html">Celerity::TableRow</a></tt>]</span>
|
900
|
+
|
901
|
+
|
902
|
+
<span class='name'>row</span>
|
903
|
+
|
904
|
+
|
905
|
+
</dt>
|
906
|
+
<dd>
|
907
|
+
<span class='desc'><p>
|
908
|
+
A row.
|
909
|
+
</p>
|
910
|
+
</span>
|
911
|
+
</dd>
|
912
|
+
|
913
|
+
</dl>
|
914
|
+
</div>
|
915
|
+
|
916
|
+
</div><div class="section source">
|
917
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
918
|
+
<div class="source_code">
|
919
|
+
<table>
|
920
|
+
<tr>
|
921
|
+
<td>
|
922
|
+
<pre class="lines">
|
923
|
+
|
924
|
+
|
925
|
+
49
|
926
|
+
50
|
927
|
+
51
|
928
|
+
52</pre>
|
929
|
+
</td>
|
930
|
+
<td>
|
931
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 49</span>
|
932
|
+
|
933
|
+
<span class='def def kw'>def</span> <span class='each identifier id'>each</span>
|
934
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
935
|
+
<span class='@rows ivar id'>@rows</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='row identifier id'>row</span><span class='bitor op'>|</span> <span class='yield yield kw'>yield</span> <span class='TableRow constant id'>TableRow</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='symbol val'>:object</span><span class='comma token'>,</span> <span class='row identifier id'>row</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
|
936
|
+
<span class='end end kw'>end</span>
|
937
|
+
</pre>
|
938
|
+
</td>
|
939
|
+
</tr>
|
940
|
+
</table>
|
941
|
+
</div>
|
942
|
+
</div>
|
943
|
+
</div>
|
944
|
+
</div>
|
945
|
+
|
946
|
+
<div class="method">
|
947
|
+
<div class="method_header">
|
948
|
+
<h3>locate</h3>
|
949
|
+
</div><div id="locate-instance_method" class="section method">
|
950
|
+
<div class="details_title">
|
951
|
+
<div class='section methodsignature'>
|
952
|
+
<tt class='def'>
|
953
|
+
<span class='visibility'>public</span>
|
954
|
+
<span class='return_types'></span>
|
955
|
+
<span class='name'>locate</span><span class='args'></span>
|
956
|
+
<span class='block'></span>
|
957
|
+
</tt>
|
958
|
+
</div>
|
959
|
+
|
960
|
+
</div><div class="section source">
|
961
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
962
|
+
<div class="source_code">
|
963
|
+
<table>
|
964
|
+
<tr>
|
965
|
+
<td>
|
966
|
+
<pre class="lines">
|
967
|
+
|
968
|
+
|
969
|
+
13
|
970
|
+
14
|
971
|
+
15
|
972
|
+
16
|
973
|
+
17
|
974
|
+
18
|
975
|
+
19
|
976
|
+
20
|
977
|
+
21
|
978
|
+
22
|
979
|
+
23
|
980
|
+
24</pre>
|
981
|
+
</td>
|
982
|
+
<td>
|
983
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 13</span>
|
984
|
+
|
985
|
+
<span class='def def kw'>def</span> <span class='locate identifier id'>locate</span>
|
986
|
+
<span class='super super kw'>super</span>
|
987
|
+
<span class='if if kw'>if</span> <span class='@object ivar id'>@object</span> <span class='comment val'># cant call assert_exists here, as an exists? method call will fail</span>
|
988
|
+
<span class='@rows ivar id'>@rows</span> <span class='assign token'>=</span> <span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getRows identifier id'>getRows</span>
|
989
|
+
<span class='@cells ivar id'>@cells</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
|
990
|
+
<span class='@rows ivar id'>@rows</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='row identifier id'>row</span><span class='bitor op'>|</span>
|
991
|
+
<span class='row identifier id'>row</span><span class='dot token'>.</span><span class='getCells identifier id'>getCells</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='c identifier id'>c</span><span class='bitor op'>|</span>
|
992
|
+
<span class='@cells ivar id'>@cells</span> <span class='lshft op'><<</span> <span class='c identifier id'>c</span>
|
993
|
+
<span class='end end kw'>end</span>
|
994
|
+
<span class='end end kw'>end</span>
|
995
|
+
<span class='end end kw'>end</span>
|
996
|
+
<span class='end end kw'>end</span>
|
997
|
+
</pre>
|
998
|
+
</td>
|
999
|
+
</tr>
|
1000
|
+
</table>
|
1001
|
+
</div>
|
1002
|
+
</div>
|
1003
|
+
</div>
|
1004
|
+
</div>
|
1005
|
+
|
1006
|
+
<div class="method">
|
1007
|
+
<div class="method_header">
|
1008
|
+
<h3>row_count</h3>
|
1009
|
+
</div><div id="row_count-instance_method" class="section method">
|
1010
|
+
<div class="details_title">
|
1011
|
+
<div class='section methodsignature'>
|
1012
|
+
<tt class='def'>
|
1013
|
+
<span class='visibility'>public</span>
|
1014
|
+
<span class='return_types'><tt>Fixnum</tt></span>
|
1015
|
+
<span class='name'>row_count</span><span class='args'></span>
|
1016
|
+
<span class='block'></span>
|
1017
|
+
</tt>
|
1018
|
+
</div>
|
1019
|
+
|
1020
|
+
</div><div class="section docstring">
|
1021
|
+
<p>
|
1022
|
+
The number of rows in the table
|
1023
|
+
</p>
|
1024
|
+
|
1025
|
+
</div><div class="section tags">
|
1026
|
+
<h2>Meta Tags</h2>
|
1027
|
+
<div class="param">
|
1028
|
+
<h3>Parameters:</h3>
|
1029
|
+
<dl>
|
1030
|
+
|
1031
|
+
</dl>
|
1032
|
+
</div><div class="return">
|
1033
|
+
<h3>Returns:</h3>
|
1034
|
+
<dl>
|
1035
|
+
|
1036
|
+
<dt>
|
1037
|
+
|
1038
|
+
<span class='type'>[<tt>Fixnum</tt>]</span>
|
1039
|
+
|
1040
|
+
|
1041
|
+
<span class='name'></span>
|
1042
|
+
|
1043
|
+
|
1044
|
+
</dt>
|
1045
|
+
<dd>
|
1046
|
+
<span class='desc'></span>
|
1047
|
+
</dd>
|
1048
|
+
|
1049
|
+
</dl>
|
1050
|
+
</div>
|
1051
|
+
|
1052
|
+
</div><div class="section source">
|
1053
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1054
|
+
<div class="source_code">
|
1055
|
+
<table>
|
1056
|
+
<tr>
|
1057
|
+
<td>
|
1058
|
+
<pre class="lines">
|
1059
|
+
|
1060
|
+
|
1061
|
+
100
|
1062
|
+
101
|
1063
|
+
102
|
1064
|
+
103</pre>
|
1065
|
+
</td>
|
1066
|
+
<td>
|
1067
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 100</span>
|
1068
|
+
|
1069
|
+
<span class='def def kw'>def</span> <span class='row_count identifier id'>row_count</span>
|
1070
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1071
|
+
<span class='@object ivar id'>@object</span><span class='dot token'>.</span><span class='getRowCount identifier id'>getRowCount</span>
|
1072
|
+
<span class='end end kw'>end</span>
|
1073
|
+
</pre>
|
1074
|
+
</td>
|
1075
|
+
</tr>
|
1076
|
+
</table>
|
1077
|
+
</div>
|
1078
|
+
</div>
|
1079
|
+
</div>
|
1080
|
+
</div>
|
1081
|
+
|
1082
|
+
<div class="method">
|
1083
|
+
<div class="method_header">
|
1084
|
+
<h3>row_values</h3>
|
1085
|
+
</div><div id="row_values-instance_method" class="section method">
|
1086
|
+
<div class="details_title">
|
1087
|
+
<div class='section methodsignature'>
|
1088
|
+
<tt class='def'>
|
1089
|
+
<span class='visibility'>public</span>
|
1090
|
+
<span class='return_types'></span>
|
1091
|
+
<span class='name'>row_values</span><span class='args'>(row_number)</span>
|
1092
|
+
<span class='block'></span>
|
1093
|
+
</tt>
|
1094
|
+
</div>
|
1095
|
+
|
1096
|
+
</div><div class="section source">
|
1097
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1098
|
+
<div class="source_code">
|
1099
|
+
<table>
|
1100
|
+
<tr>
|
1101
|
+
<td>
|
1102
|
+
<pre class="lines">
|
1103
|
+
|
1104
|
+
|
1105
|
+
136
|
1106
|
+
137
|
1107
|
+
138</pre>
|
1108
|
+
</td>
|
1109
|
+
<td>
|
1110
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 136</span>
|
1111
|
+
|
1112
|
+
<span class='def def kw'>def</span> <span class='row_values identifier id'>row_values</span><span class='lparen token'>(</span><span class='row_number identifier id'>row_number</span><span class='rparen token'>)</span>
|
1113
|
+
<span class='lparen token'>(</span><span class='float val'>1</span><span class='dot2 op'>..</span><span class='column_count identifier id'>column_count</span><span class='lparen token'>(</span><span class='row_number identifier id'>row_number</span><span class='rparen token'>)</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='index identifier id'>index</span><span class='bitor op'>|</span> <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='row_number identifier id'>row_number</span><span class='rbrack token'>]</span><span class='lbrack token'>[</span><span class='index identifier id'>index</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='text identifier id'>text</span> <span class='rbrace token'>}</span>
|
1114
|
+
<span class='end end kw'>end</span>
|
1115
|
+
</pre>
|
1116
|
+
</td>
|
1117
|
+
</tr>
|
1118
|
+
</table>
|
1119
|
+
</div>
|
1120
|
+
</div>
|
1121
|
+
</div>
|
1122
|
+
</div>
|
1123
|
+
|
1124
|
+
<div class="method">
|
1125
|
+
<div class="method_header">
|
1126
|
+
<h3>rows</h3>
|
1127
|
+
</div><div id="rows-instance_method" class="section method">
|
1128
|
+
<div class="details_title">
|
1129
|
+
<div class='section methodsignature'>
|
1130
|
+
<tt class='def'>
|
1131
|
+
<span class='visibility'>public</span>
|
1132
|
+
<span class='return_types'><tt><a title="Celerity::TableRows" href="TableRows.html">Celerity::TableRows</a></tt></span>
|
1133
|
+
<span class='name'>rows</span><span class='args'></span>
|
1134
|
+
<span class='block'></span>
|
1135
|
+
</tt>
|
1136
|
+
</div>
|
1137
|
+
|
1138
|
+
</div><div class="section tags">
|
1139
|
+
<h2>Meta Tags</h2>
|
1140
|
+
<div class="param">
|
1141
|
+
<h3>Parameters:</h3>
|
1142
|
+
<dl>
|
1143
|
+
|
1144
|
+
</dl>
|
1145
|
+
</div><div class="return">
|
1146
|
+
<h3>Returns:</h3>
|
1147
|
+
<dl>
|
1148
|
+
|
1149
|
+
<dt>
|
1150
|
+
|
1151
|
+
<span class='type'>[<tt><a title="Celerity::TableRows" href="TableRows.html">Celerity::TableRows</a></tt>]</span>
|
1152
|
+
|
1153
|
+
|
1154
|
+
<span class='name'></span>
|
1155
|
+
|
1156
|
+
|
1157
|
+
</dt>
|
1158
|
+
<dd>
|
1159
|
+
<span class='desc'></span>
|
1160
|
+
</dd>
|
1161
|
+
|
1162
|
+
</dl>
|
1163
|
+
</div>
|
1164
|
+
|
1165
|
+
</div><div class="section source">
|
1166
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1167
|
+
<div class="source_code">
|
1168
|
+
<table>
|
1169
|
+
<tr>
|
1170
|
+
<td>
|
1171
|
+
<pre class="lines">
|
1172
|
+
|
1173
|
+
|
1174
|
+
30
|
1175
|
+
31
|
1176
|
+
32
|
1177
|
+
33</pre>
|
1178
|
+
</td>
|
1179
|
+
<td>
|
1180
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 30</span>
|
1181
|
+
|
1182
|
+
<span class='def def kw'>def</span> <span class='rows identifier id'>rows</span>
|
1183
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1184
|
+
<span class='TableRows constant id'>TableRows</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='symbol val'>:object</span><span class='comma token'>,</span> <span class='@rows ivar id'>@rows</span><span class='rparen token'>)</span>
|
1185
|
+
<span class='end end kw'>end</span>
|
1186
|
+
</pre>
|
1187
|
+
</td>
|
1188
|
+
</tr>
|
1189
|
+
</table>
|
1190
|
+
</div>
|
1191
|
+
</div>
|
1192
|
+
</div>
|
1193
|
+
</div>
|
1194
|
+
|
1195
|
+
<div class="method">
|
1196
|
+
<div class="method_header">
|
1197
|
+
<h3>to_a</h3>
|
1198
|
+
</div><div id="to_a-instance_method" class="section method">
|
1199
|
+
<div class="details_title">
|
1200
|
+
<div class='section methodsignature'>
|
1201
|
+
<tt class='def'>
|
1202
|
+
<span class='visibility'>public</span>
|
1203
|
+
<span class='return_types'><tt>Array<Array<<a title="String" href="../String.html">String</a>>></tt></span>
|
1204
|
+
<span class='name'>to_a</span><span class='args'></span>
|
1205
|
+
<span class='block'></span>
|
1206
|
+
</tt>
|
1207
|
+
</div>
|
1208
|
+
|
1209
|
+
</div><div class="section docstring">
|
1210
|
+
<p>
|
1211
|
+
Returns the text of each cell in the the table as a two-dimensional array.
|
1212
|
+
</p>
|
1213
|
+
|
1214
|
+
</div><div class="section tags">
|
1215
|
+
<h2>Meta Tags</h2>
|
1216
|
+
<div class="param">
|
1217
|
+
<h3>Parameters:</h3>
|
1218
|
+
<dl>
|
1219
|
+
|
1220
|
+
</dl>
|
1221
|
+
</div><div class="return">
|
1222
|
+
<h3>Returns:</h3>
|
1223
|
+
<dl>
|
1224
|
+
|
1225
|
+
<dt>
|
1226
|
+
|
1227
|
+
<span class='type'>[<tt>Array<Array<<a title="String" href="../String.html">String</a>>></tt>]</span>
|
1228
|
+
|
1229
|
+
|
1230
|
+
<span class='name'></span>
|
1231
|
+
|
1232
|
+
|
1233
|
+
</dt>
|
1234
|
+
<dd>
|
1235
|
+
<span class='desc'></span>
|
1236
|
+
</dd>
|
1237
|
+
|
1238
|
+
</dl>
|
1239
|
+
</div>
|
1240
|
+
|
1241
|
+
</div><div class="section source">
|
1242
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
1243
|
+
<div class="source_code">
|
1244
|
+
<table>
|
1245
|
+
<tr>
|
1246
|
+
<td>
|
1247
|
+
<pre class="lines">
|
1248
|
+
|
1249
|
+
|
1250
|
+
122
|
1251
|
+
123
|
1252
|
+
124
|
1253
|
+
125
|
1254
|
+
126
|
1255
|
+
127
|
1256
|
+
128
|
1257
|
+
129
|
1258
|
+
130</pre>
|
1259
|
+
</td>
|
1260
|
+
<td>
|
1261
|
+
<pre class="code"><span class="info file"># File 'lib/celerity/elements/table.rb', line 122</span>
|
1262
|
+
|
1263
|
+
<span class='def def kw'>def</span> <span class='to_a identifier id'>to_a</span>
|
1264
|
+
<span class='assert_exists identifier id'>assert_exists</span>
|
1265
|
+
<span class='comment val'># @object.getRows.map do |table_row|</span>
|
1266
|
+
<span class='comment val'># table_row.getCells.map { |td| td.asText.strip }</span>
|
1267
|
+
<span class='comment val'># end</span>
|
1268
|
+
<span class='rows identifier id'>rows</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='table_row identifier id'>table_row</span><span class='bitor op'>|</span>
|
1269
|
+
<span class='table_row identifier id'>table_row</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='td identifier id'>td</span><span class='bitor op'>|</span> <span class='td identifier id'>td</span><span class='dot token'>.</span><span class='text identifier id'>text</span> <span class='rbrace token'>}</span>
|
1270
|
+
<span class='end end kw'>end</span>
|
1271
|
+
<span class='end end kw'>end</span>
|
1272
|
+
</pre>
|
1273
|
+
</td>
|
1274
|
+
</tr>
|
1275
|
+
</table>
|
1276
|
+
</div>
|
1277
|
+
</div>
|
1278
|
+
</div>
|
1279
|
+
</div>
|
1280
|
+
|
1281
|
+
</div>
|
1282
|
+
</div>
|
1283
|
+
|
1284
|
+
</div>
|
1285
|
+
</div>
|
1286
|
+
</body>
|
1287
|
+
</html>
|