rubypost 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/Float.html +356 -0
- data/doc/Numeric.html +423 -0
- data/doc/README.html +228 -0
- data/doc/Rational.html +357 -0
- data/doc/RubyPost.html +444 -0
- data/doc/String.html +313 -0
- data/doc/created.rid +12 -0
- data/doc/index.html +554 -0
- data/doc/rdoc.css +763 -0
- data/lib/objects.rb +7 -1
- metadata +10 -1
data/doc/Float.html
ADDED
@@ -0,0 +1,356 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Float</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./lib/redefine_float_to_s_for_metapost_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/redefine_float_to_s_for_metapost.rb">lib/redefine_float_to_s_for_metapost.rb</a></li>
|
39
|
+
|
40
|
+
<li><a href="./lib/revert_float_to_s_rb.html?TB_iframe=true&height=550&width=785"
|
41
|
+
class="thickbox" title="lib/revert_float_to_s.rb">lib/revert_float_to_s.rb</a></li>
|
42
|
+
|
43
|
+
</ul>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div id="class-metadata">
|
51
|
+
|
52
|
+
<!-- Parent Class -->
|
53
|
+
<div id="parent-class-section" class="section">
|
54
|
+
<h3 class="section-header">Parent</h3>
|
55
|
+
|
56
|
+
<p class="link">Object</p>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
<div id="method-list-section" class="section">
|
68
|
+
<h3 class="section-header">Methods</h3>
|
69
|
+
<ul class="link-list">
|
70
|
+
|
71
|
+
<li><a href="#method-i-orig_to_s">#orig_to_s</a></li>
|
72
|
+
|
73
|
+
<li><a href="#method-i-to_s">#to_s</a></li>
|
74
|
+
|
75
|
+
</ul>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div id="project-metadata">
|
83
|
+
|
84
|
+
|
85
|
+
<div id="fileindex-section" class="section project-section">
|
86
|
+
<h3 class="section-header">Files</h3>
|
87
|
+
<ul>
|
88
|
+
|
89
|
+
<li class="file"><a href="./README.html">README</a></li>
|
90
|
+
|
91
|
+
</ul>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
|
95
|
+
<div id="classindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Class/Module Index
|
97
|
+
<span class="search-toggle"><img src="./images/find.png"
|
98
|
+
height="16" width="16" alt="[+]"
|
99
|
+
title="show/hide quicksearch" /></span></h3>
|
100
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
101
|
+
<fieldset>
|
102
|
+
<legend>Quicksearch</legend>
|
103
|
+
<input type="text" name="quicksearch" value=""
|
104
|
+
class="quicksearch-field" />
|
105
|
+
</fieldset>
|
106
|
+
</form>
|
107
|
+
|
108
|
+
<ul class="link-list">
|
109
|
+
|
110
|
+
<li><a href="./RubyPost.html">RubyPost</a></li>
|
111
|
+
|
112
|
+
<li><a href="./RubyPost/AbstractPlot.html">RubyPost::AbstractPlot</a></li>
|
113
|
+
|
114
|
+
<li><a href="./RubyPost/Arrow.html">RubyPost::Arrow</a></li>
|
115
|
+
|
116
|
+
<li><a href="./RubyPost/AutoGrid.html">RubyPost::AutoGrid</a></li>
|
117
|
+
|
118
|
+
<li><a href="./RubyPost/BaseDrawCommand.html">RubyPost::BaseDrawCommand</a></li>
|
119
|
+
|
120
|
+
<li><a href="./RubyPost/BaseGraphData.html">RubyPost::BaseGraphData</a></li>
|
121
|
+
|
122
|
+
<li><a href="./RubyPost/BaseLabel.html">RubyPost::BaseLabel</a></li>
|
123
|
+
|
124
|
+
<li><a href="./RubyPost/Circle.html">RubyPost::Circle</a></li>
|
125
|
+
|
126
|
+
<li><a href="./RubyPost/Clip.html">RubyPost::Clip</a></li>
|
127
|
+
|
128
|
+
<li><a href="./RubyPost/Color.html">RubyPost::Color</a></li>
|
129
|
+
|
130
|
+
<li><a href="./RubyPost/Colour.html">RubyPost::Colour</a></li>
|
131
|
+
|
132
|
+
<li><a href="./RubyPost/Coords.html">RubyPost::Coords</a></li>
|
133
|
+
|
134
|
+
<li><a href="./RubyPost/CurvedPlot.html">RubyPost::CurvedPlot</a></li>
|
135
|
+
|
136
|
+
<li><a href="./RubyPost/CustomDrawable.html">RubyPost::CustomDrawable</a></li>
|
137
|
+
|
138
|
+
<li><a href="./RubyPost/CustomOption.html">RubyPost::CustomOption</a></li>
|
139
|
+
|
140
|
+
<li><a href="./RubyPost/Dashed.html">RubyPost::Dashed</a></li>
|
141
|
+
|
142
|
+
<li><a href="./RubyPost/DblArrow.html">RubyPost::DblArrow</a></li>
|
143
|
+
|
144
|
+
<li><a href="./RubyPost/DotLabel.html">RubyPost::DotLabel</a></li>
|
145
|
+
|
146
|
+
<li><a href="./RubyPost/DoubleArrow.html">RubyPost::DoubleArrow</a></li>
|
147
|
+
|
148
|
+
<li><a href="./RubyPost/Draw.html">RubyPost::Draw</a></li>
|
149
|
+
|
150
|
+
<li><a href="./RubyPost/Drawable.html">RubyPost::Drawable</a></li>
|
151
|
+
|
152
|
+
<li><a href="./RubyPost/Figure.html">RubyPost::Figure</a></li>
|
153
|
+
|
154
|
+
<li><a href="./RubyPost/File.html">RubyPost::File</a></li>
|
155
|
+
|
156
|
+
<li><a href="./RubyPost/Fill.html">RubyPost::Fill</a></li>
|
157
|
+
|
158
|
+
<li><a href="./RubyPost/Graph.html">RubyPost::Graph</a></li>
|
159
|
+
|
160
|
+
<li><a href="./RubyPost/GraphData.html">RubyPost::GraphData</a></li>
|
161
|
+
|
162
|
+
<li><a href="./RubyPost/GraphDataOption.html">RubyPost::GraphDataOption</a></li>
|
163
|
+
|
164
|
+
<li><a href="./RubyPost/GraphFile.html">RubyPost::GraphFile</a></li>
|
165
|
+
|
166
|
+
<li><a href="./RubyPost/GraphLabel.html">RubyPost::GraphLabel</a></li>
|
167
|
+
|
168
|
+
<li><a href="./RubyPost/GraphOption.html">RubyPost::GraphOption</a></li>
|
169
|
+
|
170
|
+
<li><a href="./RubyPost/GraphTitle.html">RubyPost::GraphTitle</a></li>
|
171
|
+
|
172
|
+
<li><a href="./RubyPost/ImpulsePlot.html">RubyPost::ImpulsePlot</a></li>
|
173
|
+
|
174
|
+
<li><a href="./RubyPost/Label.html">RubyPost::Label</a></li>
|
175
|
+
|
176
|
+
<li><a href="./RubyPost/LinePlot.html">RubyPost::LinePlot</a></li>
|
177
|
+
|
178
|
+
<li><a href="./RubyPost/Macros.html">RubyPost::Macros</a></li>
|
179
|
+
|
180
|
+
<li><a href="./RubyPost/Object.html">RubyPost::Object</a></li>
|
181
|
+
|
182
|
+
<li><a href="./RubyPost/Option.html">RubyPost::Option</a></li>
|
183
|
+
|
184
|
+
<li><a href="./RubyPost/Pair.html">RubyPost::Pair</a></li>
|
185
|
+
|
186
|
+
<li><a href="./RubyPost/Path.html">RubyPost::Path</a></li>
|
187
|
+
|
188
|
+
<li><a href="./RubyPost/PathOption.html">RubyPost::PathOption</a></li>
|
189
|
+
|
190
|
+
<li><a href="./RubyPost/Pen.html">RubyPost::Pen</a></li>
|
191
|
+
|
192
|
+
<li><a href="./RubyPost/Picture.html">RubyPost::Picture</a></li>
|
193
|
+
|
194
|
+
<li><a href="./RubyPost/PicturePrecompiler.html">RubyPost::PicturePrecompiler</a></li>
|
195
|
+
|
196
|
+
<li><a href="./RubyPost/Plot.html">RubyPost::Plot</a></li>
|
197
|
+
|
198
|
+
<li><a href="./RubyPost/Range.html">RubyPost::Range</a></li>
|
199
|
+
|
200
|
+
<li><a href="./RubyPost/Rotate.html">RubyPost::Rotate</a></li>
|
201
|
+
|
202
|
+
<li><a href="./RubyPost/Rotated.html">RubyPost::Rotated</a></li>
|
203
|
+
|
204
|
+
<li><a href="./RubyPost/Scale.html">RubyPost::Scale</a></li>
|
205
|
+
|
206
|
+
<li><a href="./RubyPost/Scaled.html">RubyPost::Scaled</a></li>
|
207
|
+
|
208
|
+
<li><a href="./RubyPost/Shift.html">RubyPost::Shift</a></li>
|
209
|
+
|
210
|
+
<li><a href="./RubyPost/Shifted.html">RubyPost::Shifted</a></li>
|
211
|
+
|
212
|
+
<li><a href="./RubyPost/SimplePlot.html">RubyPost::SimplePlot</a></li>
|
213
|
+
|
214
|
+
<li><a href="./RubyPost/Square.html">RubyPost::Square</a></li>
|
215
|
+
|
216
|
+
<li><a href="./RubyPost/StemPlot.html">RubyPost::StemPlot</a></li>
|
217
|
+
|
218
|
+
<li><a href="./RubyPost/Translate.html">RubyPost::Translate</a></li>
|
219
|
+
|
220
|
+
<li><a href="./RubyPost/XLabel.html">RubyPost::XLabel</a></li>
|
221
|
+
|
222
|
+
<li><a href="./RubyPost/YLabel.html">RubyPost::YLabel</a></li>
|
223
|
+
|
224
|
+
<li><a href="./RubyPost/YLabelRight.html">RubyPost::YLabelRight</a></li>
|
225
|
+
|
226
|
+
<li><a href="./Float.html">Float</a></li>
|
227
|
+
|
228
|
+
<li><a href="./Numeric.html">Numeric</a></li>
|
229
|
+
|
230
|
+
<li><a href="./Rational.html">Rational</a></li>
|
231
|
+
|
232
|
+
<li><a href="./String.html">String</a></li>
|
233
|
+
|
234
|
+
</ul>
|
235
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
236
|
+
</div>
|
237
|
+
|
238
|
+
|
239
|
+
</div>
|
240
|
+
</div>
|
241
|
+
|
242
|
+
<div id="documentation">
|
243
|
+
<h1 class="class">Float</h1>
|
244
|
+
|
245
|
+
<div id="description" class="description">
|
246
|
+
|
247
|
+
<p>metapost cannot handle expoential notation for float strings. This
|
248
|
+
redefines the <a href="Float.html#method-i-to_s">Float#to_s</a> so that it
|
249
|
+
is compatible with metapost.</p>
|
250
|
+
<hr style="height: 1px">
|
251
|
+
|
252
|
+
<p>puts <a href="Float.html#method-i-to_s">Float#to_s</a> back to it’s
|
253
|
+
original state</p>
|
254
|
+
|
255
|
+
</div><!-- description -->
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<!-- Methods -->
|
270
|
+
|
271
|
+
<div id="public-instance-method-details" class="method-section section">
|
272
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
273
|
+
|
274
|
+
|
275
|
+
<div id="orig_to_s-method" class="method-detail method-alias">
|
276
|
+
<a name="method-i-orig_to_s"></a>
|
277
|
+
|
278
|
+
|
279
|
+
<div class="method-heading">
|
280
|
+
<span class="method-name">orig_to_s</span><span
|
281
|
+
class="method-args">()</span>
|
282
|
+
<span class="method-click-advice">click to toggle source</span>
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
<div class="method-description">
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
</div>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<div class="aliases">
|
298
|
+
Alias for: <a href="Float.html#method-i-to_s">to_s</a>
|
299
|
+
</div>
|
300
|
+
|
301
|
+
</div><!-- orig_to_s-method -->
|
302
|
+
|
303
|
+
|
304
|
+
<div id="to_s-method" class="method-detail ">
|
305
|
+
<a name="method-i-to_s"></a>
|
306
|
+
|
307
|
+
|
308
|
+
<div class="method-heading">
|
309
|
+
<span class="method-name">to_s</span><span
|
310
|
+
class="method-args">()</span>
|
311
|
+
<span class="method-click-advice">click to toggle source</span>
|
312
|
+
</div>
|
313
|
+
|
314
|
+
|
315
|
+
<div class="method-description">
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<div class="method-source-code" id="to_s-source">
|
322
|
+
<pre>
|
323
|
+
<span class="ruby-comment"># File lib/redefine_float_to_s_for_metapost.rb, line 7</span>
|
324
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
325
|
+
<span class="ruby-identifier">sprintf</span>(<span class="ruby-node">"%.#{5}f"</span>, <span class="ruby-keyword">self</span>)
|
326
|
+
<span class="ruby-keyword">end</span></pre>
|
327
|
+
</div><!-- to_s-source -->
|
328
|
+
|
329
|
+
</div>
|
330
|
+
|
331
|
+
|
332
|
+
<div class="aliases">
|
333
|
+
Also aliased as: <a href="Float.html#method-i-orig_to_s">orig_to_s</a>
|
334
|
+
</div>
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
</div><!-- to_s-method -->
|
339
|
+
|
340
|
+
|
341
|
+
</div><!-- public-instance-method-details -->
|
342
|
+
|
343
|
+
</div><!-- 5Buntitled-5D -->
|
344
|
+
|
345
|
+
|
346
|
+
</div><!-- documentation -->
|
347
|
+
|
348
|
+
<div id="validator-badges">
|
349
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
350
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
351
|
+
Rdoc Generator</a> 2</small>.</p>
|
352
|
+
</div>
|
353
|
+
|
354
|
+
</body>
|
355
|
+
</html>
|
356
|
+
|
data/doc/Numeric.html
ADDED
@@ -0,0 +1,423 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Numeric</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./lib/objects_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/objects.rb">lib/objects.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">Object</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-i-bp">#bp</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-cm">#cm</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-compile">#compile</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-inch">#inch</a></li>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div id="project-metadata">
|
84
|
+
|
85
|
+
|
86
|
+
<div id="fileindex-section" class="section project-section">
|
87
|
+
<h3 class="section-header">Files</h3>
|
88
|
+
<ul>
|
89
|
+
|
90
|
+
<li class="file"><a href="./README.html">README</a></li>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="classindex-section" class="section project-section">
|
97
|
+
<h3 class="section-header">Class/Module Index
|
98
|
+
<span class="search-toggle"><img src="./images/find.png"
|
99
|
+
height="16" width="16" alt="[+]"
|
100
|
+
title="show/hide quicksearch" /></span></h3>
|
101
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
102
|
+
<fieldset>
|
103
|
+
<legend>Quicksearch</legend>
|
104
|
+
<input type="text" name="quicksearch" value=""
|
105
|
+
class="quicksearch-field" />
|
106
|
+
</fieldset>
|
107
|
+
</form>
|
108
|
+
|
109
|
+
<ul class="link-list">
|
110
|
+
|
111
|
+
<li><a href="./RubyPost.html">RubyPost</a></li>
|
112
|
+
|
113
|
+
<li><a href="./RubyPost/AbstractPlot.html">RubyPost::AbstractPlot</a></li>
|
114
|
+
|
115
|
+
<li><a href="./RubyPost/Arrow.html">RubyPost::Arrow</a></li>
|
116
|
+
|
117
|
+
<li><a href="./RubyPost/AutoGrid.html">RubyPost::AutoGrid</a></li>
|
118
|
+
|
119
|
+
<li><a href="./RubyPost/BaseDrawCommand.html">RubyPost::BaseDrawCommand</a></li>
|
120
|
+
|
121
|
+
<li><a href="./RubyPost/BaseGraphData.html">RubyPost::BaseGraphData</a></li>
|
122
|
+
|
123
|
+
<li><a href="./RubyPost/BaseLabel.html">RubyPost::BaseLabel</a></li>
|
124
|
+
|
125
|
+
<li><a href="./RubyPost/Circle.html">RubyPost::Circle</a></li>
|
126
|
+
|
127
|
+
<li><a href="./RubyPost/Clip.html">RubyPost::Clip</a></li>
|
128
|
+
|
129
|
+
<li><a href="./RubyPost/Color.html">RubyPost::Color</a></li>
|
130
|
+
|
131
|
+
<li><a href="./RubyPost/Colour.html">RubyPost::Colour</a></li>
|
132
|
+
|
133
|
+
<li><a href="./RubyPost/Coords.html">RubyPost::Coords</a></li>
|
134
|
+
|
135
|
+
<li><a href="./RubyPost/CurvedPlot.html">RubyPost::CurvedPlot</a></li>
|
136
|
+
|
137
|
+
<li><a href="./RubyPost/CustomDrawable.html">RubyPost::CustomDrawable</a></li>
|
138
|
+
|
139
|
+
<li><a href="./RubyPost/CustomOption.html">RubyPost::CustomOption</a></li>
|
140
|
+
|
141
|
+
<li><a href="./RubyPost/Dashed.html">RubyPost::Dashed</a></li>
|
142
|
+
|
143
|
+
<li><a href="./RubyPost/DblArrow.html">RubyPost::DblArrow</a></li>
|
144
|
+
|
145
|
+
<li><a href="./RubyPost/DotLabel.html">RubyPost::DotLabel</a></li>
|
146
|
+
|
147
|
+
<li><a href="./RubyPost/DoubleArrow.html">RubyPost::DoubleArrow</a></li>
|
148
|
+
|
149
|
+
<li><a href="./RubyPost/Draw.html">RubyPost::Draw</a></li>
|
150
|
+
|
151
|
+
<li><a href="./RubyPost/Drawable.html">RubyPost::Drawable</a></li>
|
152
|
+
|
153
|
+
<li><a href="./RubyPost/Figure.html">RubyPost::Figure</a></li>
|
154
|
+
|
155
|
+
<li><a href="./RubyPost/File.html">RubyPost::File</a></li>
|
156
|
+
|
157
|
+
<li><a href="./RubyPost/Fill.html">RubyPost::Fill</a></li>
|
158
|
+
|
159
|
+
<li><a href="./RubyPost/Graph.html">RubyPost::Graph</a></li>
|
160
|
+
|
161
|
+
<li><a href="./RubyPost/GraphData.html">RubyPost::GraphData</a></li>
|
162
|
+
|
163
|
+
<li><a href="./RubyPost/GraphDataOption.html">RubyPost::GraphDataOption</a></li>
|
164
|
+
|
165
|
+
<li><a href="./RubyPost/GraphFile.html">RubyPost::GraphFile</a></li>
|
166
|
+
|
167
|
+
<li><a href="./RubyPost/GraphLabel.html">RubyPost::GraphLabel</a></li>
|
168
|
+
|
169
|
+
<li><a href="./RubyPost/GraphOption.html">RubyPost::GraphOption</a></li>
|
170
|
+
|
171
|
+
<li><a href="./RubyPost/GraphTitle.html">RubyPost::GraphTitle</a></li>
|
172
|
+
|
173
|
+
<li><a href="./RubyPost/ImpulsePlot.html">RubyPost::ImpulsePlot</a></li>
|
174
|
+
|
175
|
+
<li><a href="./RubyPost/Label.html">RubyPost::Label</a></li>
|
176
|
+
|
177
|
+
<li><a href="./RubyPost/LinePlot.html">RubyPost::LinePlot</a></li>
|
178
|
+
|
179
|
+
<li><a href="./RubyPost/Macros.html">RubyPost::Macros</a></li>
|
180
|
+
|
181
|
+
<li><a href="./RubyPost/Object.html">RubyPost::Object</a></li>
|
182
|
+
|
183
|
+
<li><a href="./RubyPost/Option.html">RubyPost::Option</a></li>
|
184
|
+
|
185
|
+
<li><a href="./RubyPost/Pair.html">RubyPost::Pair</a></li>
|
186
|
+
|
187
|
+
<li><a href="./RubyPost/Path.html">RubyPost::Path</a></li>
|
188
|
+
|
189
|
+
<li><a href="./RubyPost/PathOption.html">RubyPost::PathOption</a></li>
|
190
|
+
|
191
|
+
<li><a href="./RubyPost/Pen.html">RubyPost::Pen</a></li>
|
192
|
+
|
193
|
+
<li><a href="./RubyPost/Picture.html">RubyPost::Picture</a></li>
|
194
|
+
|
195
|
+
<li><a href="./RubyPost/PicturePrecompiler.html">RubyPost::PicturePrecompiler</a></li>
|
196
|
+
|
197
|
+
<li><a href="./RubyPost/Plot.html">RubyPost::Plot</a></li>
|
198
|
+
|
199
|
+
<li><a href="./RubyPost/Range.html">RubyPost::Range</a></li>
|
200
|
+
|
201
|
+
<li><a href="./RubyPost/Rotate.html">RubyPost::Rotate</a></li>
|
202
|
+
|
203
|
+
<li><a href="./RubyPost/Rotated.html">RubyPost::Rotated</a></li>
|
204
|
+
|
205
|
+
<li><a href="./RubyPost/Scale.html">RubyPost::Scale</a></li>
|
206
|
+
|
207
|
+
<li><a href="./RubyPost/Scaled.html">RubyPost::Scaled</a></li>
|
208
|
+
|
209
|
+
<li><a href="./RubyPost/Shift.html">RubyPost::Shift</a></li>
|
210
|
+
|
211
|
+
<li><a href="./RubyPost/Shifted.html">RubyPost::Shifted</a></li>
|
212
|
+
|
213
|
+
<li><a href="./RubyPost/SimplePlot.html">RubyPost::SimplePlot</a></li>
|
214
|
+
|
215
|
+
<li><a href="./RubyPost/Square.html">RubyPost::Square</a></li>
|
216
|
+
|
217
|
+
<li><a href="./RubyPost/StemPlot.html">RubyPost::StemPlot</a></li>
|
218
|
+
|
219
|
+
<li><a href="./RubyPost/Translate.html">RubyPost::Translate</a></li>
|
220
|
+
|
221
|
+
<li><a href="./RubyPost/XLabel.html">RubyPost::XLabel</a></li>
|
222
|
+
|
223
|
+
<li><a href="./RubyPost/YLabel.html">RubyPost::YLabel</a></li>
|
224
|
+
|
225
|
+
<li><a href="./RubyPost/YLabelRight.html">RubyPost::YLabelRight</a></li>
|
226
|
+
|
227
|
+
<li><a href="./Float.html">Float</a></li>
|
228
|
+
|
229
|
+
<li><a href="./Numeric.html">Numeric</a></li>
|
230
|
+
|
231
|
+
<li><a href="./Rational.html">Rational</a></li>
|
232
|
+
|
233
|
+
<li><a href="./String.html">String</a></li>
|
234
|
+
|
235
|
+
</ul>
|
236
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
237
|
+
</div>
|
238
|
+
|
239
|
+
|
240
|
+
</div>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
<div id="documentation">
|
244
|
+
<h1 class="class">Numeric</h1>
|
245
|
+
|
246
|
+
<div id="description" class="description">
|
247
|
+
|
248
|
+
<p>Add the compile functionality to Ruby <a href="Numeric.html">Numeric</a>.
|
249
|
+
Calling compile will add the cm, inch, bp metapost sizes to the to_s</p>
|
250
|
+
|
251
|
+
</div><!-- description -->
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
<!-- Methods -->
|
266
|
+
|
267
|
+
<div id="public-instance-method-details" class="method-section section">
|
268
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
269
|
+
|
270
|
+
|
271
|
+
<div id="bp-method" class="method-detail ">
|
272
|
+
<a name="method-i-bp"></a>
|
273
|
+
|
274
|
+
|
275
|
+
<div class="method-heading">
|
276
|
+
<span class="method-name">bp</span><span
|
277
|
+
class="method-args">()</span>
|
278
|
+
<span class="method-click-advice">click to toggle source</span>
|
279
|
+
</div>
|
280
|
+
|
281
|
+
|
282
|
+
<div class="method-description">
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
<div class="method-source-code" id="bp-source">
|
289
|
+
<pre>
|
290
|
+
<span class="ruby-comment"># File lib/objects.rb, line 191</span>
|
291
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">bp</span>
|
292
|
+
<span class="ruby-ivar">@mpsize</span> = <span class="ruby-string">'bp'</span>
|
293
|
+
<span class="ruby-keyword">self</span>
|
294
|
+
<span class="ruby-keyword">end</span></pre>
|
295
|
+
</div><!-- bp-source -->
|
296
|
+
|
297
|
+
</div>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
</div><!-- bp-method -->
|
303
|
+
|
304
|
+
|
305
|
+
<div id="cm-method" class="method-detail ">
|
306
|
+
<a name="method-i-cm"></a>
|
307
|
+
|
308
|
+
|
309
|
+
<div class="method-heading">
|
310
|
+
<span class="method-name">cm</span><span
|
311
|
+
class="method-args">()</span>
|
312
|
+
<span class="method-click-advice">click to toggle source</span>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
|
316
|
+
<div class="method-description">
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
<div class="method-source-code" id="cm-source">
|
323
|
+
<pre>
|
324
|
+
<span class="ruby-comment"># File lib/objects.rb, line 183</span>
|
325
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cm</span>
|
326
|
+
<span class="ruby-ivar">@mpsize</span> = <span class="ruby-string">'cm'</span>
|
327
|
+
<span class="ruby-keyword">self</span>
|
328
|
+
<span class="ruby-keyword">end</span></pre>
|
329
|
+
</div><!-- cm-source -->
|
330
|
+
|
331
|
+
</div>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
</div><!-- cm-method -->
|
337
|
+
|
338
|
+
|
339
|
+
<div id="compile-method" class="method-detail ">
|
340
|
+
<a name="method-i-compile"></a>
|
341
|
+
|
342
|
+
|
343
|
+
<div class="method-heading">
|
344
|
+
<span class="method-name">compile</span><span
|
345
|
+
class="method-args">()</span>
|
346
|
+
<span class="method-click-advice">click to toggle source</span>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
|
350
|
+
<div class="method-description">
|
351
|
+
|
352
|
+
<p>A nifty thing here is that if you dont specify the size if wont print
|
353
|
+
anything</p>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
<div class="method-source-code" id="compile-source">
|
358
|
+
<pre>
|
359
|
+
<span class="ruby-comment"># File lib/objects.rb, line 197</span>
|
360
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">compile</span>
|
361
|
+
<span class="ruby-comment">#@mpsize='cm' if(@mpsize==nil)</span>
|
362
|
+
<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@mpsize</span>.<span class="ruby-identifier">to_s</span>
|
363
|
+
<span class="ruby-keyword">end</span></pre>
|
364
|
+
</div><!-- compile-source -->
|
365
|
+
|
366
|
+
</div>
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
</div><!-- compile-method -->
|
372
|
+
|
373
|
+
|
374
|
+
<div id="inch-method" class="method-detail ">
|
375
|
+
<a name="method-i-inch"></a>
|
376
|
+
|
377
|
+
|
378
|
+
<div class="method-heading">
|
379
|
+
<span class="method-name">inch</span><span
|
380
|
+
class="method-args">()</span>
|
381
|
+
<span class="method-click-advice">click to toggle source</span>
|
382
|
+
</div>
|
383
|
+
|
384
|
+
|
385
|
+
<div class="method-description">
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
<div class="method-source-code" id="inch-source">
|
392
|
+
<pre>
|
393
|
+
<span class="ruby-comment"># File lib/objects.rb, line 187</span>
|
394
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">inch</span>
|
395
|
+
<span class="ruby-ivar">@mpsize</span> = <span class="ruby-string">'inch'</span>
|
396
|
+
<span class="ruby-keyword">self</span>
|
397
|
+
<span class="ruby-keyword">end</span></pre>
|
398
|
+
</div><!-- inch-source -->
|
399
|
+
|
400
|
+
</div>
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
</div><!-- inch-method -->
|
406
|
+
|
407
|
+
|
408
|
+
</div><!-- public-instance-method-details -->
|
409
|
+
|
410
|
+
</div><!-- 5Buntitled-5D -->
|
411
|
+
|
412
|
+
|
413
|
+
</div><!-- documentation -->
|
414
|
+
|
415
|
+
<div id="validator-badges">
|
416
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
417
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
418
|
+
Rdoc Generator</a> 2</small>.</p>
|
419
|
+
</div>
|
420
|
+
|
421
|
+
</body>
|
422
|
+
</html>
|
423
|
+
|