doc/Ballast/Concerns/View.html in ballast-1.1.2 vs doc/Ballast/Concerns/View.html in ballast-1.2.0
- old
+ new
@@ -179,11 +179,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#javascript_params-instance_method" title="#javascript_params (instance method)">- (String|Hash) <strong>javascript_params</strong>(as_html = true, tag = :details, id = nil) </a>
+ <a href="#javascript_params-instance_method" title="#javascript_params (instance method)">- (String|Hash) <strong>javascript_params</strong>(id = nil, tag = :details) </a>
</span>
@@ -307,10 +307,11 @@
<tr>
<td>
<pre class="lines">
+47
48
49
50
51
52
@@ -318,15 +319,14 @@
54
55
56
57
58
-59
-60</pre>
+59</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 48</span>
+ <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 47</span>
<span class='kw'>def</span> <span class='id identifier rubyid_add_javascript_params'>add_javascript_params</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_replace'>replace</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
<span class='ivar'>@javascript_params</span> <span class='op'>||=</span> <span class='const'>HashWithIndifferentAccess</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
<span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span>
@@ -482,11 +482,11 @@
</div>
<div class="method_details ">
<h3 class="signature " id="javascript_params-instance_method">
- - (<tt>String|Hash</tt>) <strong>javascript_params</strong>(as_html = true, tag = :details, id = nil)
+ - (<tt>String|Hash</tt>) <strong>javascript_params</strong>(id = nil, tag = :details)
@@ -501,21 +501,21 @@
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
- <span class='name'>as_html</span>
+ <span class='name'>id</span>
- <span class='type'>(<tt>Boolean</tt>)</span>
+ <span class='type'>(<tt>String|NilClass|FalseClass</tt>)</span>
- <em class="default">(defaults to: <tt>true</tt>)</em>
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
—
- <div class='inline'><p>Whether to return the parameters as HTML rather than hash.</p>
+ <div class='inline'><p>The id for the tag. If <code>nil</code> or <code>false</code>, the parameters will be returned as an hash.</p>
</div>
</li>
<li>
@@ -533,27 +533,10 @@
<div class='inline'><p>The tag to use for HTML.</p>
</div>
</li>
- <li>
-
- <span class='name'>id</span>
-
-
- <span class='type'>(<tt>String</tt>)</span>
-
-
- <em class="default">(defaults to: <tt>nil</tt>)</em>
-
-
- —
- <div class='inline'><p>The id for the tag.</p>
-</div>
-
- </li>
-
</ul>
<p class="tag_title">Returns:</p>
<ul class="return">
@@ -576,19 +559,19 @@
<tr>
<td>
<pre class="lines">
+38
39
-40
-41</pre>
+40</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 39</span>
+ <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 38</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_javascript_params'>javascript_params</span><span class='lparen'>(</span><span class='id identifier rubyid_as_html'>as_html</span> <span class='op'>=</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='id identifier rubyid_tag'>tag</span> <span class='op'>=</span> <span class='symbol'>:details</span><span class='comma'>,</span> <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_as_html'>as_html</span> <span class='op'>?</span> <span class='id identifier rubyid_content_tag'>content_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='comma'>,</span> <span class='ivar'>@javascript_params</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>data-jid</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span><span class='op'>:</span> <span class='ivar'>@javascript_params</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_javascript_params'>javascript_params</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_tag'>tag</span> <span class='op'>=</span> <span class='symbol'>:details</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_id'>id</span> <span class='op'>?</span> <span class='id identifier rubyid_content_tag'>content_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='comma'>,</span> <span class='ivar'>@javascript_params</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span><span class='period'>.</span><span class='id identifier rubyid_html_safe'>html_safe</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>data-jid</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span><span class='op'>:</span> <span class='ivar'>@javascript_params</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -653,10 +636,10 @@
</div>
</div>
<div id="footer">
- Generated on Wed Dec 25 14:50:04 2013 by
+ Generated on Wed Dec 25 15:52:53 2013 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.8.7.3 (ruby-2.0.0).
</div>
</body>
\ No newline at end of file