doc/Ballast/Concerns/View.html in ballast-1.9.3 vs doc/Ballast/Concerns/View.html in ballast-2.0.0

- old
+ new

@@ -4,22 +4,22 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Module: Ballast::Concerns::View - &mdash; Documentation by YARD 0.8.7.3 + &mdash; Documentation by YARD 0.8.7.6 </title> <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" /> <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" /> <script type="text/javascript" charset="utf-8"> hasFrames = window.top.frames.main ? true : false; relpath = '../../'; - framesUrl = "../../frames.html#!" + escape(window.location.href); + framesUrl = "../../frames.html#!Ballast/Concerns/View.html"; </script> <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script> @@ -110,11 +110,11 @@ <ul class="summary"> <li class="public "> <span class="summary_signature"> - <a href="#add_javascript_params-instance_method" title="#add_javascript_params (instance method)">- (Object) <strong>add_javascript_params</strong>(key, data, replace = false) </a> + <a href="#browser-instance_method" title="#browser (instance method)">- (Browser) <strong>browser</strong> </a> </span> @@ -124,20 +124,20 @@ - <span class="summary_desc"><div class='inline'><p>Appends new Javascript parameters.</p> + <span class="summary_desc"><div class='inline'><p>Returns an instance of the browser.</p> </div></span> </li> <li class="public "> <span class="summary_signature"> - <a href="#browser-instance_method" title="#browser (instance method)">- (Browser) <strong>browser</strong> </a> + <a href="#browser_supported%3F-instance_method" title="#browser_supported? (instance method)">- (Boolean) <strong>browser_supported?</strong>(file = &quot;config/supported-browsers.yml&quot;, root: nil) </a> </span> @@ -147,20 +147,20 @@ - <span class="summary_desc"><div class='inline'><p>Returns an instance of the browser.</p> + <span class="summary_desc"><div class='inline'><p>Checks if the current browser is supported according to a definition YAML file.</p> </div></span> </li> <li class="public "> <span class="summary_signature"> - <a href="#browser_supported%3F-instance_method" title="#browser_supported? (instance method)">- (Boolean) <strong>browser_supported?</strong>(conf_file = nil) </a> + <a href="#javascript_params-instance_method" title="#javascript_params (instance method)">- (String|Hash) <strong>javascript_params</strong>(id = nil, tag: :details, attribute: &quot;data-jid&quot;) </a> </span> @@ -170,68 +170,68 @@ - <span class="summary_desc"><div class='inline'><p>Checks if the current browser is supported according to a definition YAML file.</p> + <span class="summary_desc"><div class='inline'><p>Outputs the Javascript parameters.</p> </div></span> </li> <li class="public "> <span class="summary_signature"> - <a href="#javascript_params-instance_method" title="#javascript_params (instance method)">- (String|Hash) <strong>javascript_params</strong>(id = nil, tag = :details) </a> + <a href="#layout_params-instance_method" title="#layout_params (instance method)">- (Object|Hash|NilClass) <strong>layout_params</strong>(key = nil, default_value = nil) </a> + (also: #layout_param) + </span> - <span class="summary_desc"><div class='inline'><p>Outputs the Javascript parameters.</p> + <span class="summary_desc"><div class='inline'><p>Returns one or all layout parameters.</p> </div></span> </li> <li class="public "> <span class="summary_signature"> - <a href="#layout_params-instance_method" title="#layout_params (instance method)">- (Object|Hash) <strong>layout_params</strong>(key = nil, default_value = nil) </a> + <a href="#scope_css-instance_method" title="#scope_css (instance method)">- (String) <strong>scope_css</strong> </a> - (also: #layout_param) - </span> - <span class="summary_desc"><div class='inline'><p>Returns one or all layout parameters.</p> + <span class="summary_desc"><div class='inline'><p>Scopes the CSS of the current page using the controller and action name.</p> </div></span> </li> <li class="public "> <span class="summary_signature"> - <a href="#scope_css-instance_method" title="#scope_css (instance method)">- (String) <strong>scope_css</strong> </a> + <a href="#update_javascript_params-instance_method" title="#update_javascript_params (instance method)">- (Object) <strong>update_javascript_params</strong>(key, data, replace: false) </a> </span> @@ -241,20 +241,20 @@ - <span class="summary_desc"><div class='inline'><p>Scopes the CSS of the current page using the controller and action name.</p> + <span class="summary_desc"><div class='inline'><p>Adds/Replaces Javascript parameters.</p> </div></span> </li> <li class="public "> <span class="summary_signature"> - <a href="#set_layout_params-instance_method" title="#set_layout_params (instance method)">- (Object) <strong>set_layout_params</strong>(**args) </a> + <a href="#update_layout_params-instance_method" title="#update_layout_params (instance method)">- (Object) <strong>update_layout_params</strong>(**args) </a> </span> @@ -280,123 +280,12 @@ <div id="instance_method_details" class="method_details_list"> <h2>Instance Method Details</h2> <div class="method_details first"> - <h3 class="signature first" id="add_javascript_params-instance_method"> + <h3 class="signature first" id="browser-instance_method"> - - (<tt>Object</tt>) <strong>add_javascript_params</strong>(key, data, replace = false) - - - - - -</h3><div class="docstring"> - <div class="discussion"> - <p>Appends new Javascript parameters.</p> - - - </div> -</div> -<div class="tags"> - <p class="tag_title">Parameters:</p> -<ul class="param"> - - <li> - - <span class='name'>key</span> - - - <span class='type'>(<tt>String|Symbol</tt>)</span> - - - - &mdash; - <div class='inline'><p>The key of the new parameters. If <code>nil</code>, the root will be merged/replaced.</p> -</div> - - </li> - - <li> - - <span class='name'>data</span> - - - <span class='type'>(<tt>Hash</tt>)</span> - - - - &mdash; - <div class='inline'><p>The data to add.</p> -</div> - - </li> - - <li> - - <span class='name'>replace</span> - - - <span class='type'>(<tt>Boolean</tt>)</span> - - - <em class="default">(defaults to: <tt>false</tt>)</em> - - - &mdash; - <div class='inline'><p>Whether to replace existing data rather than merge.</p> -</div> - - </li> - -</ul> - - -</div><table class="source_code"> - <tr> - <td> - <pre class="lines"> - - -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79</pre> - </td> - <td> - <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 67</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='id identifier rubyid_initialize_view_params'>initialize_view_params</span> - - <span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span> - <span class='ivar'>@javascript_params</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_replace'>replace</span> - <span class='ivar'>@javascript_params</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> - <span class='ivar'>@javascript_params</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> - <span class='kw'>elsif</span> <span class='id identifier rubyid_replace'>replace</span> - <span class='ivar'>@javascript_params</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_with_indifferent_access'>with_indifferent_access</span> - <span class='kw'>else</span> - <span class='ivar'>@javascript_params</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> - <span class='kw'>end</span> -<span class='kw'>end</span></pre> - </td> - </tr> -</table> -</div> - - <div class="method_details "> - <h3 class="signature " id="browser-instance_method"> - - (<tt>Browser</tt>) <strong>browser</strong> @@ -440,21 +329,21 @@ </td> <td> <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 20</span> <span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span> - <span class='ivar'>@browser</span> <span class='op'>||=</span> <span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browser</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_user_agent'>user_agent</span><span class='rparen'>)</span> + <span class='ivar'>@browser</span> <span class='op'>||=</span> <span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browser</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_user_agent'>user_agent</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Accept-Language</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> <h3 class="signature " id="browser_supported?-instance_method"> - - (<tt>Boolean</tt>) <strong>browser_supported?</strong>(conf_file = nil) + - (<tt>Boolean</tt>) <strong>browser_supported?</strong>(file = &quot;config/supported-browsers.yml&quot;, root: nil) @@ -469,25 +358,40 @@ <p class="tag_title">Parameters:</p> <ul class="param"> <li> - <span class='name'>conf_file</span> + <span class='name'>file</span> <span class='type'>(<tt>String</tt>)</span> - <em class="default">(defaults to: <tt>nil</tt>)</em> + <em class="default">(defaults to: <tt>&quot;config/supported-browsers.yml&quot;</tt>)</em> &mdash; <div class='inline'><p>The configuration file which holds the definitions.</p> </div> </li> + <li> + + <span class='name'>root</span> + + + <span class='type'>(<tt>String|NilClass</tt>)</span> + + + + &mdash; + <div class='inline'><p>The directory that contains the configuration file.</p> +</div> + + </li> + </ul> <p class="tag_title">Returns:</p> <ul class="return"> @@ -510,31 +414,29 @@ <tr> <td> <pre class="lines"> -28 29 30 31</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 28</span> + <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 29</span> -<span class='kw'>def</span> <span class='id identifier rubyid_browser_supported?'>browser_supported?</span><span class='lparen'>(</span><span class='id identifier rubyid_conf_file'>conf_file</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span> - <span class='id identifier rubyid_conf_file'>conf_file</span> <span class='op'>||=</span> <span class='lparen'>(</span><span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_root'>root</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>config/supported-browsers.yml</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>if</span> <span class='kw'>defined?</span><span class='lparen'>(</span><span class='const'>Rails</span><span class='rparen'>)</span> - <span class='id identifier rubyid_browser'>browser</span><span class='period'>.</span><span class='id identifier rubyid_supported?'>supported?</span><span class='lparen'>(</span><span class='id identifier rubyid_conf_file'>conf_file</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_browser_supported?'>browser_supported?</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>config/supported-browsers.yml</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='label'>root:</span> <span class='kw'>nil</span><span class='rparen'>)</span> + <span class='id identifier rubyid_browser'>browser</span><span class='period'>.</span><span class='id identifier rubyid_supported?'>supported?</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='const'>Ballast</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_default_root'>default_root</span> <span class='op'>||</span> <span class='id identifier rubyid_root'>root</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span> <span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> <h3 class="signature " id="javascript_params-instance_method"> - - (<tt>String|Hash</tt>) <strong>javascript_params</strong>(id = nil, tag = :details) + - (<tt>String|Hash</tt>) <strong>javascript_params</strong>(id = nil, tag: :details, attribute: &quot;data-jid&quot;) @@ -572,19 +474,32 @@ <span class='type'>(<tt>Symbol</tt>)</span> - <em class="default">(defaults to: <tt>:details</tt>)</em> - &mdash; <div class='inline'><p>The tag to use for HTML.</p> </div> </li> + <li> + + <span class='name'>attribute</span> + + + <span class='type'>(<tt>Symbol</tt>)</span> + + + + &mdash; + <div class='inline'><p>The attribute to use for the HTML element id.</p> +</div> + + </li> + </ul> <p class="tag_title">Returns:</p> <ul class="return"> @@ -594,11 +509,11 @@ <span class='type'>(<tt>String|Hash</tt>)</span> &mdash; - <div class='inline'><p>Javascript parameters as HTML or the hash.</p> + <div class='inline'><p>Javascript parameters as HTML or as an hash.</p> </div> </li> </ul> @@ -607,31 +522,31 @@ <tr> <td> <pre class="lines"> -57 58 59 -60</pre> +60 +61</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 57</span> + <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 58</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='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='label'>tag:</span> <span class='symbol'>:details</span><span class='comma'>,</span> <span class='label'>attribute:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>data-jid</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='id identifier rubyid_initialize_view_params'>initialize_view_params</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'>&quot;</span><span class='tstring_content'>data-jid</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</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='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='id identifier rubyid_attribute'>attribute</span> <span class='op'>=&gt;</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> <div class="method_details "> <h3 class="signature " id="layout_params-instance_method"> - - (<tt>Object|Hash</tt>) <strong>layout_params</strong>(key = nil, default_value = nil) + - (<tt>Object|Hash|NilClass</tt>) <strong>layout_params</strong>(key = nil, default_value = nil) <span class="aliases">Also known as: <span class="names"><span id='layout_param-instance_method'>layout_param</span></span> @@ -670,11 +585,11 @@ <li> <span class='name'>default_value</span> - <span class='type'>(<tt>Object</tt>)</span> + <span class='type'>(<tt>Object|NilClass</tt>)</span> <em class="default">(defaults to: <tt>nil</tt>)</em> @@ -690,11 +605,11 @@ <ul class="return"> <li> - <span class='type'>(<tt>Object|Hash</tt>)</span> + <span class='type'>(<tt>Object|Hash|NilClass</tt>)</span> &mdash; <div class='inline'><p>The parameter or the entire layout parameters hash.</p> @@ -775,28 +690,137 @@ </td> <td> <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 13</span> <span class='kw'>def</span> <span class='id identifier rubyid_scope_css'>scope_css</span> - <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%s %s</span><span class='tstring_end'>&quot;</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id identifier rubyid_controller_path'>controller_path</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_action_name'>action_name</span><span class='rbracket'>]</span> + <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>%s %s</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_controller_path'>controller_path</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> </table> </div> <div class="method_details "> - <h3 class="signature " id="set_layout_params-instance_method"> + <h3 class="signature " id="update_javascript_params-instance_method"> - - (<tt>Object</tt>) <strong>set_layout_params</strong>(**args) + - (<tt>Object</tt>) <strong>update_javascript_params</strong>(key, data, replace: false) </h3><div class="docstring"> <div class="discussion"> + <p>Adds/Replaces Javascript parameters.</p> + + + </div> +</div> +<div class="tags"> + <p class="tag_title">Parameters:</p> +<ul class="param"> + + <li> + + <span class='name'>key</span> + + + <span class='type'>(<tt>String|Symbol</tt>)</span> + + + + &mdash; + <div class='inline'><p>The key of the new parameters. If <code>nil</code>, the root will be merged/replaced.</p> +</div> + + </li> + + <li> + + <span class='name'>data</span> + + + <span class='type'>(<tt>Hash</tt>)</span> + + + + &mdash; + <div class='inline'><p>The data to add or replace.</p> +</div> + + </li> + + <li> + + <span class='name'>replace</span> + + + <span class='type'>(<tt>Boolean</tt>)</span> + + + + &mdash; + <div class='inline'><p>Whether to replace existing data rather than merge.</p> +</div> + + </li> + +</ul> + + +</div><table class="source_code"> + <tr> + <td> + <pre class="lines"> + + +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80</pre> + </td> + <td> + <pre class="code"><span class="info file"># File 'lib/ballast/concerns/view.rb', line 68</span> + +<span class='kw'>def</span> <span class='id identifier rubyid_update_javascript_params'>update_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='label'>replace:</span> <span class='kw'>false</span><span class='rparen'>)</span> + <span class='id identifier rubyid_initialize_view_params'>initialize_view_params</span> + + <span class='kw'>if</span> <span class='id identifier rubyid_key'>key</span> + <span class='ivar'>@javascript_params</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='kw'>if</span> <span class='id identifier rubyid_replace'>replace</span> + <span class='ivar'>@javascript_params</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> + <span class='ivar'>@javascript_params</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> + <span class='kw'>elsif</span> <span class='id identifier rubyid_replace'>replace</span> + <span class='ivar'>@javascript_params</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_with_indifferent_access'>with_indifferent_access</span> + <span class='kw'>else</span> + <span class='ivar'>@javascript_params</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span> + <span class='kw'>end</span> +<span class='kw'>end</span></pre> + </td> + </tr> +</table> +</div> + + <div class="method_details "> + <h3 class="signature " id="update_layout_params-instance_method"> + + - (<tt>Object</tt>) <strong>update_layout_params</strong>(**args) + + + + + +</h3><div class="docstring"> + <div class="discussion"> <p>Adds/Replaces layout parameters.</p> </div> </div> @@ -812,11 +836,11 @@ <span class='type'>(<tt>Hash</tt>)</span> &mdash; - <div class='inline'><p>The new parameters to add.</p> + <div class='inline'><p>The parameters to add or replace.</p> </div> </li> </ul> @@ -834,11 +858,11 @@ 50</pre> </td> <td> <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_set_layout_params'>set_layout_params</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> +<span class='kw'>def</span> <span class='id identifier rubyid_update_layout_params'>update_layout_params</span><span class='lparen'>(</span><span class='op'>**</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='id identifier rubyid_initialize_view_params'>initialize_view_params</span> <span class='ivar'>@layout_params</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='kw'>end</span></pre> </td> </tr> @@ -848,12 +872,12 @@ </div> </div> <div id="footer"> - Generated on Sat Mar 15 14:04:12 2014 by + Generated on Sun Nov 2 09:40:00 2014 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.8.7.3 (ruby-2.1.0). + 0.8.7.6 (ruby-2.1.3). </div> </body> </html> \ No newline at end of file