mbrao 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis-gemfile +5 -2
- data/.travis.yml +2 -2
- data/Gemfile +6 -4
- data/README.md +1 -0
- data/Rakefile +18 -0
- data/doc/ActionView/Template/Handlers/MbraoTemplate.html +5 -5
- data/doc/ActionView/Template/Handlers.html +5 -5
- data/doc/HTML/Pipeline/KramdownFilter.html +5 -5
- data/doc/HTML/Pipeline.html +5 -5
- data/doc/HTML.html +5 -5
- data/doc/Mbrao/Author.html +12 -12
- data/doc/Mbrao/Content.html +104 -140
- data/doc/Mbrao/ContentPublicInterface.html +6 -6
- data/doc/Mbrao/Exceptions/InvalidDate.html +7 -7
- data/doc/Mbrao/Exceptions/InvalidMetadata.html +7 -7
- data/doc/Mbrao/Exceptions/Parsing.html +7 -7
- data/doc/Mbrao/Exceptions/Rendering.html +7 -7
- data/doc/Mbrao/Exceptions/UnavailableLocalization.html +7 -7
- data/doc/Mbrao/Exceptions/Unimplemented.html +7 -7
- data/doc/Mbrao/Exceptions/UnknownEngine.html +7 -7
- data/doc/Mbrao/Exceptions.html +5 -5
- data/doc/Mbrao/Parser.html +15 -15
- data/doc/Mbrao/ParsingEngines/Base.html +5 -5
- data/doc/Mbrao/ParsingEngines/PlainText.html +5 -5
- data/doc/Mbrao/ParsingEngines.html +5 -5
- data/doc/Mbrao/PublicInterface/ClassMethods.html +20 -32
- data/doc/Mbrao/PublicInterface.html +5 -5
- data/doc/Mbrao/RenderingEngines/Base.html +5 -5
- data/doc/Mbrao/RenderingEngines/HtmlPipeline.html +16 -16
- data/doc/Mbrao/RenderingEngines.html +5 -5
- data/doc/Mbrao/Validations/ClassMethods.html +13 -351
- data/doc/Mbrao/Validations.html +5 -5
- data/doc/Mbrao/Version.html +7 -7
- data/doc/Mbrao.html +5 -5
- data/doc/_index.html +6 -6
- data/doc/class_list.html +3 -2
- data/doc/file.README.html +7 -6
- data/doc/file_list.html +2 -1
- data/doc/frames.html +1 -1
- data/doc/index.html +7 -6
- data/doc/js/full_list.js +7 -2
- data/doc/method_list.html +67 -192
- data/doc/top-level-namespace.html +5 -5
- data/lib/mbrao/author.rb +1 -1
- data/lib/mbrao/content.rb +10 -12
- data/lib/mbrao/exceptions.rb +7 -7
- data/lib/mbrao/parser.rb +4 -65
- data/lib/mbrao/rendering_engines/html_pipeline.rb +5 -5
- data/lib/mbrao/version.rb +2 -2
- data/lib/mbrao.rb +1 -1
- data/mbrao.gemspec +4 -4
- data/spec/coverage_helper.rb +4 -1
- data/spec/mbrao/author_spec.rb +5 -5
- data/spec/mbrao/content_spec.rb +3 -3
- data/spec/mbrao/integrations/rails_spec.rb +8 -8
- data/spec/mbrao/parser_spec.rb +19 -96
- data/spec/mbrao/parsing_engines/base_spec.rb +7 -7
- data/spec/mbrao/rendering_engines/html_pipeline_spec.rb +13 -14
- metadata +11 -11
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mbrao::PublicInterface::ClassMethods
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -440,9 +440,7 @@
|
|
440
440
|
97
|
441
441
|
98
|
442
442
|
99
|
443
|
-
100
|
444
|
-
101
|
445
|
-
102</pre>
|
443
|
+
100</pre>
|
446
444
|
</td>
|
447
445
|
<td>
|
448
446
|
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 21</span>
|
@@ -479,7 +477,7 @@
|
|
479
477
|
</span> <span class='comment'># @param options [Hash] A list of options for parsing.
|
480
478
|
</span> <span class='comment'># @return [Content] The parsed data.
|
481
479
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
482
|
-
<span class='
|
480
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
483
481
|
<span class='kw'>end</span>
|
484
482
|
|
485
483
|
<span class='comment'># Renders a content.
|
@@ -489,7 +487,7 @@
|
|
489
487
|
</span> <span class='comment'># @param context [Hash] A context for rendering.
|
490
488
|
</span> <span class='comment'># @return [String] The rendered content.
|
491
489
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
492
|
-
<span class='
|
490
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span>
|
493
491
|
<span class='kw'>end</span>
|
494
492
|
|
495
493
|
<span class='comment'># Instantiates a new engine for rendering or parsing.
|
@@ -506,8 +504,6 @@
|
|
506
504
|
<span class='kw'>end</span>
|
507
505
|
<span class='kw'>end</span>
|
508
506
|
|
509
|
-
|
510
|
-
|
511
507
|
<span class='comment'># Returns a unique (singleton) instance of the parser.
|
512
508
|
</span> <span class='comment'>#
|
513
509
|
</span> <span class='comment'># @param force [Boolean] If to force recreation of the instance.
|
@@ -716,9 +712,7 @@
|
|
716
712
|
97
|
717
713
|
98
|
718
714
|
99
|
719
|
-
100
|
720
|
-
101
|
721
|
-
102</pre>
|
715
|
+
100</pre>
|
722
716
|
</td>
|
723
717
|
<td>
|
724
718
|
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 21</span>
|
@@ -755,7 +749,7 @@
|
|
755
749
|
</span> <span class='comment'># @param options [Hash] A list of options for parsing.
|
756
750
|
</span> <span class='comment'># @return [Content] The parsed data.
|
757
751
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
758
|
-
<span class='
|
752
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
759
753
|
<span class='kw'>end</span>
|
760
754
|
|
761
755
|
<span class='comment'># Renders a content.
|
@@ -765,7 +759,7 @@
|
|
765
759
|
</span> <span class='comment'># @param context [Hash] A context for rendering.
|
766
760
|
</span> <span class='comment'># @return [String] The rendered content.
|
767
761
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
768
|
-
<span class='
|
762
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span>
|
769
763
|
<span class='kw'>end</span>
|
770
764
|
|
771
765
|
<span class='comment'># Instantiates a new engine for rendering or parsing.
|
@@ -782,8 +776,6 @@
|
|
782
776
|
<span class='kw'>end</span>
|
783
777
|
<span class='kw'>end</span>
|
784
778
|
|
785
|
-
|
786
|
-
|
787
779
|
<span class='comment'># Returns a unique (singleton) instance of the parser.
|
788
780
|
</span> <span class='comment'>#
|
789
781
|
</span> <span class='comment'># @param force [Boolean] If to force recreation of the instance.
|
@@ -933,9 +925,7 @@
|
|
933
925
|
97
|
934
926
|
98
|
935
927
|
99
|
936
|
-
100
|
937
|
-
101
|
938
|
-
102</pre>
|
928
|
+
100</pre>
|
939
929
|
</td>
|
940
930
|
<td>
|
941
931
|
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 21</span>
|
@@ -972,7 +962,7 @@
|
|
972
962
|
</span> <span class='comment'># @param options [Hash] A list of options for parsing.
|
973
963
|
</span> <span class='comment'># @return [Content] The parsed data.
|
974
964
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
975
|
-
<span class='
|
965
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
976
966
|
<span class='kw'>end</span>
|
977
967
|
|
978
968
|
<span class='comment'># Renders a content.
|
@@ -982,7 +972,7 @@
|
|
982
972
|
</span> <span class='comment'># @param context [Hash] A context for rendering.
|
983
973
|
</span> <span class='comment'># @return [String] The rendered content.
|
984
974
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
985
|
-
<span class='
|
975
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span>
|
986
976
|
<span class='kw'>end</span>
|
987
977
|
|
988
978
|
<span class='comment'># Instantiates a new engine for rendering or parsing.
|
@@ -999,8 +989,6 @@
|
|
999
989
|
<span class='kw'>end</span>
|
1000
990
|
<span class='kw'>end</span>
|
1001
991
|
|
1002
|
-
|
1003
|
-
|
1004
992
|
<span class='comment'># Returns a unique (singleton) instance of the parser.
|
1005
993
|
</span> <span class='comment'>#
|
1006
994
|
</span> <span class='comment'># @param force [Boolean] If to force recreation of the instance.
|
@@ -1200,13 +1188,13 @@
|
|
1200
1188
|
<pre class="lines">
|
1201
1189
|
|
1202
1190
|
|
1191
|
+
84
|
1192
|
+
85
|
1203
1193
|
86
|
1204
|
-
87
|
1205
|
-
88
|
1206
|
-
89</pre>
|
1194
|
+
87</pre>
|
1207
1195
|
</td>
|
1208
1196
|
<td>
|
1209
|
-
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line
|
1197
|
+
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 84</span>
|
1210
1198
|
|
1211
1199
|
<span class='kw'>def</span> <span class='id identifier rubyid_instance'>instance</span><span class='lparen'>(</span><span class='id identifier rubyid_force'>force</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
1212
1200
|
<span class='ivar'>@instance</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_force'>force</span>
|
@@ -1303,7 +1291,7 @@
|
|
1303
1291
|
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 52</span>
|
1304
1292
|
|
1305
1293
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1306
|
-
<span class='
|
1294
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1307
1295
|
<span class='kw'>end</span></pre>
|
1308
1296
|
</td>
|
1309
1297
|
</tr>
|
@@ -1413,7 +1401,7 @@
|
|
1413
1401
|
<pre class="code"><span class="info file"># File 'lib/mbrao/parser.rb', line 62</span>
|
1414
1402
|
|
1415
1403
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1416
|
-
<span class='
|
1404
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span>
|
1417
1405
|
<span class='kw'>end</span></pre>
|
1418
1406
|
</td>
|
1419
1407
|
</tr>
|
@@ -1425,9 +1413,9 @@
|
|
1425
1413
|
</div>
|
1426
1414
|
|
1427
1415
|
<div id="footer">
|
1428
|
-
Generated on Sat
|
1416
|
+
Generated on Sat Jul 20 16:09:45 2013 by
|
1429
1417
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1430
|
-
0.8.
|
1418
|
+
0.8.6.2 (ruby-1.9.3).
|
1431
1419
|
</div>
|
1432
1420
|
|
1433
1421
|
</body>
|
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mbrao::PublicInterface
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -125,9 +125,9 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on Sat
|
128
|
+
Generated on Sat Jul 20 16:09:45 2013 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
-
0.8.
|
130
|
+
0.8.6.2 (ruby-1.9.3).
|
131
131
|
</div>
|
132
132
|
|
133
133
|
</body>
|
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mbrao::RenderingEngines::Base
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -271,9 +271,9 @@
|
|
271
271
|
</div>
|
272
272
|
|
273
273
|
<div id="footer">
|
274
|
-
Generated on Sat
|
274
|
+
Generated on Sat Jul 20 16:09:46 2013 by
|
275
275
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
276
|
-
0.8.
|
276
|
+
0.8.6.2 (ruby-1.9.3).
|
277
277
|
</div>
|
278
278
|
|
279
279
|
</body>
|
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Mbrao::RenderingEngines::HtmlPipeline
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -382,7 +382,7 @@
|
|
382
382
|
</span> <span class='comment'># @param context [Hash] A context for rendering.
|
383
383
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
384
384
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_sanitize_options'>sanitize_options</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
385
|
-
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier
|
385
|
+
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='symbol'>:symbols</span><span class='rparen'>)</span>
|
386
386
|
|
387
387
|
<span class='kw'>begin</span>
|
388
388
|
<span class='id identifier rubyid_create_pipeline'>create_pipeline</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_get_body'>get_body</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
@@ -404,7 +404,7 @@
|
|
404
404
|
</span> <span class='comment'>#
|
405
405
|
</span> <span class='comment'># @return [Array] The default pipeline.
|
406
406
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default_pipeline='>default_pipeline=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
407
|
-
<span class='ivar'>@default_pipeline</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='
|
407
|
+
<span class='ivar'>@default_pipeline</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
|
408
408
|
<span class='kw'>end</span>
|
409
409
|
|
410
410
|
<span class='comment'># Gets the default options.
|
@@ -418,7 +418,7 @@
|
|
418
418
|
</span> <span class='comment'>#
|
419
419
|
</span> <span class='comment'># @param value [Object] The new default options.
|
420
420
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default_options='>default_options=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
421
|
-
<span class='ivar'>@default_options</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier
|
421
|
+
<span class='ivar'>@default_options</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span>
|
422
422
|
<span class='kw'>end</span>
|
423
423
|
|
424
424
|
<span class='id identifier rubyid_private'>private</span>
|
@@ -427,9 +427,9 @@
|
|
427
427
|
</span> <span class='comment'># @param options [Hash] The options to sanitize.
|
428
428
|
</span> <span class='comment'># @return [Hash] The sanitized options.
|
429
429
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_sanitize_options'>sanitize_options</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
430
|
-
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier
|
430
|
+
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='symbol'>:symbols</span><span class='rparen'>)</span>
|
431
431
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_filter_filters'>filter_filters</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
432
|
-
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:pipeline_options</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_options'>default_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='
|
432
|
+
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:pipeline_options</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_options'>default_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:pipeline_options</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='symbol'>:symbols</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
433
433
|
|
434
434
|
<span class='id identifier rubyid_options'>options</span>
|
435
435
|
<span class='kw'>end</span>
|
@@ -643,7 +643,7 @@
|
|
643
643
|
</span> <span class='comment'># @param context [Hash] A context for rendering.
|
644
644
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
645
645
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_sanitize_options'>sanitize_options</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
646
|
-
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier
|
646
|
+
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='symbol'>:symbols</span><span class='rparen'>)</span>
|
647
647
|
|
648
648
|
<span class='kw'>begin</span>
|
649
649
|
<span class='id identifier rubyid_create_pipeline'>create_pipeline</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_get_body'>get_body</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
@@ -665,7 +665,7 @@
|
|
665
665
|
</span> <span class='comment'>#
|
666
666
|
</span> <span class='comment'># @return [Array] The default pipeline.
|
667
667
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default_pipeline='>default_pipeline=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
668
|
-
<span class='ivar'>@default_pipeline</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='
|
668
|
+
<span class='ivar'>@default_pipeline</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
|
669
669
|
<span class='kw'>end</span>
|
670
670
|
|
671
671
|
<span class='comment'># Gets the default options.
|
@@ -679,7 +679,7 @@
|
|
679
679
|
</span> <span class='comment'>#
|
680
680
|
</span> <span class='comment'># @param value [Object] The new default options.
|
681
681
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_default_options='>default_options=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
682
|
-
<span class='ivar'>@default_options</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier
|
682
|
+
<span class='ivar'>@default_options</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span>
|
683
683
|
<span class='kw'>end</span>
|
684
684
|
|
685
685
|
<span class='id identifier rubyid_private'>private</span>
|
@@ -688,9 +688,9 @@
|
|
688
688
|
</span> <span class='comment'># @param options [Hash] The options to sanitize.
|
689
689
|
</span> <span class='comment'># @return [Hash] The sanitized options.
|
690
690
|
</span> <span class='kw'>def</span> <span class='id identifier rubyid_sanitize_options'>sanitize_options</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
691
|
-
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier
|
691
|
+
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='symbol'>:symbols</span><span class='rparen'>)</span>
|
692
692
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_filter_filters'>filter_filters</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
693
|
-
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:pipeline_options</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_options'>default_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='
|
693
|
+
<span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:pipeline_options</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_options'>default_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:pipeline_options</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='symbol'>:symbols</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
694
694
|
|
695
695
|
<span class='id identifier rubyid_options'>options</span>
|
696
696
|
<span class='kw'>end</span>
|
@@ -844,7 +844,7 @@
|
|
844
844
|
|
845
845
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
846
846
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='id identifier rubyid_sanitize_options'>sanitize_options</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
847
|
-
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier
|
847
|
+
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_ensure_hash'>ensure_hash</span><span class='lparen'>(</span><span class='symbol'>:symbols</span><span class='rparen'>)</span>
|
848
848
|
|
849
849
|
<span class='kw'>begin</span>
|
850
850
|
<span class='id identifier rubyid_create_pipeline'>create_pipeline</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_get_body'>get_body</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
@@ -864,9 +864,9 @@
|
|
864
864
|
</div>
|
865
865
|
|
866
866
|
<div id="footer">
|
867
|
-
Generated on Sat
|
867
|
+
Generated on Sat Jul 20 16:09:46 2013 by
|
868
868
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
869
|
-
0.8.
|
869
|
+
0.8.6.2 (ruby-1.9.3).
|
870
870
|
</div>
|
871
871
|
|
872
872
|
</body>
|
@@ -6,13 +6,13 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Mbrao::RenderingEngines
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.6.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
@@ -118,9 +118,9 @@
|
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div id="footer">
|
121
|
-
Generated on Sat
|
121
|
+
Generated on Sat Jul 20 16:09:45 2013 by
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
|
-
0.8.
|
123
|
+
0.8.6.2 (ruby-1.9.3).
|
124
124
|
</div>
|
125
125
|
|
126
126
|
</body>
|