fixed a previously unfixed issue with all markdown parsers except redcarpet being inferior
This commit is contained in:
parent
8d30faf52f
commit
5861908848
|
@ -2,27 +2,29 @@ lib/hyde.rb 632d043ed6e7484bca963c37e1629e1d88c89b69
|
|||
lib/hyde/node.rb 93d92492390abb2b55649c6d027fa3a2cb8f2014
|
||||
lib/hyde/path.rb 42c04e42ea879ad73f639f2086b3ab5ca40489dc
|
||||
lib/hyde/probe.rb 673b55e9aa8c8286a770bd23ae00bff1ac2047fe
|
||||
lib/hyde/server.rb 6f15f6c8e67783086bfe70ad03c7ca9b8269c69d
|
||||
lib/hyde/server.rb b68b932a689a2f8dbebebc2dc7eef5972c13d974
|
||||
lib/hyde/request.rb 792427908273455eb694e13d3517cdae43af3454
|
||||
lib/hyde/response.rb 0f0c107c7db883b308b81cbf5c0c4b7d5c90e7ba
|
||||
lib/hyde/template.rb f3ac5033c5cdb9218b1865b5c9662ba50b813a70
|
||||
lib/hyde/util/html.rb bb83ec3ad162b8702ae054428f33c7d8a041d816
|
||||
lib/hyde/response.rb a82971ec8f86201de804e61b4dd277b48d28e8b2
|
||||
lib/hyde/template.rb 69e46f8095e5e06dd69129ed975a5ce1e6d3de1f
|
||||
lib/hyde/util/html.rb a29b85ecfdcbd294efff67a12c509262ac9c49be
|
||||
lib/hyde/util/query.rb 212e9bd776eac429c2b2a821586ccce97f996df9
|
||||
lib/hyde/util/header.rb ce82b5351a857860b105f25d68ca66c0193359ce
|
||||
lib/hyde/util/cookie.rb d36b33ae00c2ae8eb7c007bdf40a232c46bda24f
|
||||
lib/hyde/util/header.rb 3af726c08bdf54a348238e76279e82d75bbaacc1
|
||||
lib/hyde/util/lookup.rb 5b8e28a8471bb786f4e0a0d616885d238c806661
|
||||
lib/hyde/template/erb.rb 4d1c85dd55b55030bba1ba4f9c27ea39fd0c1e47
|
||||
lib/hyde/template/erb.rb d8c808a1fafaa65b400780204063bae6046e2f54
|
||||
lib/hyde/util/sorting.rb af30f01ce32880f7e3e2b0ad6c2324c2fded9431
|
||||
lib/hyde/probe/handler.rb 9b3eb4ce702c40920c04ed0cb3b93984683de447
|
||||
lib/hyde/template/erubi.rb 74793cda58f79d6be3ce4ca25dc231296485bd4c
|
||||
lib/hyde/util/multipart.rb 37abad9fbe044855d02d36185be645f07cb417c0
|
||||
lib/hyde/dsl/methods_path.rb 0369e370c594f0bd5c987c67791175eeaa8f9c21
|
||||
lib/hyde/dsl/methods_path.rb 57411e500d5ac565164a1f7250a7141f0f206e60
|
||||
lib/hyde/pattern_matching.rb fe86f6529a2d22c128d9d3a74217862e9fa59c15
|
||||
lib/hyde/dsl/methods_probe.rb c18bb7f712f14e4d08416f77969eb0af07a4f3a7
|
||||
lib/hyde/probe/http_method.rb 26ba5c9dabff5508dbd6efcba1711d6417cf957b
|
||||
lib/hyde/dsl/methods_common.rb ea06161f4324127fbbacd51918eadc4e059e4fcf
|
||||
lib/hyde/probe/serve_handler.rb 6c1d2a7b949700468342ced4c23c7fe60df4d3f0
|
||||
lib/hyde/dsl/methods_template.rb c77827f2a4133142b7f9f9dfe0bb49efb3b23d44
|
||||
lib/hyde/dsl/methods_template.rb 5ea0be9ad7411ed0d5bd50435edf2b7be9bd0b6f
|
||||
lib/hyde/dsl/constructors_path.rb d9fafcfae4d6aab9bd85a7de955eb74f8d4d5937
|
||||
lib/hyde/pattern_matching/glob.rb 16595083bc8d6f7b98f4adda502a05bd411bc1ca
|
||||
lib/hyde/pattern_matching/util.rb 188dc7d5d9a9a6538a01943a83eb132c385dc092
|
||||
lib/hyde/dsl/constructors_probe.rb 6295d25bfa4e896b122590e79e57a03111ed2f09
|
||||
lib/hyde/dsl/constructors_probe.rb c447b87b77ddb476584a3d77c5bf58f8122492ee
|
||||
lib/hyde/pattern_matching/rematch.rb 54a4f94791e68d85c38034d954e4c3174e01511b
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -100,7 +100,7 @@ app = Hyde::Server.new do
|
|||
end
|
||||
get "answer" do
|
||||
header "content-type", "application/json"
|
||||
'\\{"answer":42, "desc":"something important!"\\}'
|
||||
'{"answer":42, "desc":"something important!"}'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>lib/hyde.rb<span class="defines">,<br />
|
||||
lib/hyde/node.rb,<br /> lib/hyde/path.rb,<br /> lib/hyde/probe.rb,<br /> lib/hyde/server.rb,<br /> lib/hyde/request.rb,<br /> lib/hyde/response.rb,<br /> lib/hyde/template.rb,<br /> lib/hyde/util/html.rb,<br /> lib/hyde/util/query.rb,<br /> lib/hyde/util/header.rb,<br /> lib/hyde/util/lookup.rb,<br /> lib/hyde/template/erb.rb,<br /> lib/hyde/util/sorting.rb,<br /> lib/hyde/probe/handler.rb,<br /> lib/hyde/util/multipart.rb,<br /> lib/hyde/dsl/methods_path.rb,<br /> lib/hyde/pattern_matching.rb,<br /> lib/hyde/dsl/methods_probe.rb,<br /> lib/hyde/probe/http_method.rb,<br /> lib/hyde/dsl/methods_common.rb,<br /> lib/hyde/probe/serve_handler.rb,<br /> lib/hyde/dsl/methods_template.rb,<br /> lib/hyde/dsl/constructors_path.rb,<br /> lib/hyde/pattern_matching/glob.rb,<br /> lib/hyde/pattern_matching/util.rb,<br /> lib/hyde/dsl/constructors_probe.rb,<br /> lib/hyde/pattern_matching/rematch.rb</span>
|
||||
lib/hyde/node.rb,<br /> lib/hyde/path.rb,<br /> lib/hyde/probe.rb,<br /> lib/hyde/server.rb,<br /> lib/hyde/request.rb,<br /> lib/hyde/response.rb,<br /> lib/hyde/template.rb,<br /> lib/hyde/util/html.rb,<br /> lib/hyde/util/query.rb,<br /> lib/hyde/util/cookie.rb,<br /> lib/hyde/util/header.rb,<br /> lib/hyde/util/lookup.rb,<br /> lib/hyde/template/erb.rb,<br /> lib/hyde/util/sorting.rb,<br /> lib/hyde/probe/handler.rb,<br /> lib/hyde/template/erubi.rb,<br /> lib/hyde/util/multipart.rb,<br /> lib/hyde/dsl/methods_path.rb,<br /> lib/hyde/pattern_matching.rb,<br /> lib/hyde/dsl/methods_probe.rb,<br /> lib/hyde/probe/http_method.rb,<br /> lib/hyde/dsl/methods_common.rb,<br /> lib/hyde/probe/serve_handler.rb,<br /> lib/hyde/dsl/methods_template.rb,<br /> lib/hyde/dsl/constructors_path.rb,<br /> lib/hyde/pattern_matching/glob.rb,<br /> lib/hyde/pattern_matching/util.rb,<br /> lib/hyde/dsl/constructors_probe.rb,<br /> lib/hyde/pattern_matching/rematch.rb</span>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
@ -103,7 +103,7 @@
|
|||
|
||||
|
||||
|
||||
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Hyde/Node.html" title="Hyde::Node (class)">Node</a></span>, <span class='object_link'><a href="Hyde/Path.html" title="Hyde::Path (class)">Path</a></span>, <span class='object_link'><a href="Hyde/PathContext.html" title="Hyde::PathContext (class)">PathContext</a></span>, <span class='object_link'><a href="Hyde/Pattern.html" title="Hyde::Pattern (class)">Pattern</a></span>, <span class='object_link'><a href="Hyde/Probe.html" title="Hyde::Probe (class)">Probe</a></span>, <span class='object_link'><a href="Hyde/ProbeContext.html" title="Hyde::ProbeContext (class)">ProbeContext</a></span>, <span class='object_link'><a href="Hyde/ProcessorContext.html" title="Hyde::ProcessorContext (class)">ProcessorContext</a></span>, <span class='object_link'><a href="Hyde/Request.html" title="Hyde::Request (class)">Request</a></span>, <span class='object_link'><a href="Hyde/Response.html" title="Hyde::Response (class)">Response</a></span>, <span class='object_link'><a href="Hyde/Server.html" title="Hyde::Server (class)">Server</a></span>, <span class='object_link'><a href="Hyde/ServerContext.html" title="Hyde::ServerContext (class)">ServerContext</a></span>, <span class='object_link'><a href="Hyde/Template.html" title="Hyde::Template (class)">Template</a></span>, <span class='object_link'><a href="Hyde/TemplateContext.html" title="Hyde::TemplateContext (class)">TemplateContext</a></span>
|
||||
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Hyde/Cookie.html" title="Hyde::Cookie (class)">Cookie</a></span>, <span class='object_link'><a href="Hyde/Node.html" title="Hyde::Node (class)">Node</a></span>, <span class='object_link'><a href="Hyde/Path.html" title="Hyde::Path (class)">Path</a></span>, <span class='object_link'><a href="Hyde/PathContext.html" title="Hyde::PathContext (class)">PathContext</a></span>, <span class='object_link'><a href="Hyde/Pattern.html" title="Hyde::Pattern (class)">Pattern</a></span>, <span class='object_link'><a href="Hyde/Probe.html" title="Hyde::Probe (class)">Probe</a></span>, <span class='object_link'><a href="Hyde/ProbeContext.html" title="Hyde::ProbeContext (class)">ProbeContext</a></span>, <span class='object_link'><a href="Hyde/ProcessorContext.html" title="Hyde::ProcessorContext (class)">ProcessorContext</a></span>, <span class='object_link'><a href="Hyde/Request.html" title="Hyde::Request (class)">Request</a></span>, <span class='object_link'><a href="Hyde/Response.html" title="Hyde::Response (class)">Response</a></span>, <span class='object_link'><a href="Hyde/Server.html" title="Hyde::Server (class)">Server</a></span>, <span class='object_link'><a href="Hyde/ServerContext.html" title="Hyde::ServerContext (class)">ServerContext</a></span>, <span class='object_link'><a href="Hyde/Template.html" title="Hyde::Template (class)">Template</a></span>, <span class='object_link'><a href="Hyde/TemplateContext.html" title="Hyde::TemplateContext (class)">TemplateContext</a></span>
|
||||
|
||||
|
||||
</p>
|
||||
|
@ -175,7 +175,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,808 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Class: Hyde::Cookie
|
||||
|
||||
— Documentation by YARD 0.9.34
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
||||
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "Hyde::Cookie";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="nav_wrap">
|
||||
<iframe id="nav" src="../class_list.html?1"></iframe>
|
||||
<div id="resizer"></div>
|
||||
</div>
|
||||
|
||||
<div id="main" tabindex="-1">
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (C)</a> »
|
||||
<span class='title'><span class='object_link'><a href="../Hyde.html" title="Hyde (module)">Hyde</a></span></span>
|
||||
»
|
||||
<span class="title">Cookie</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="search">
|
||||
|
||||
<a class="full_list_link" id="class_list_link"
|
||||
href="../class_list.html">
|
||||
|
||||
<svg width="24" height="24">
|
||||
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
||||
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
||||
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Class: Hyde::Cookie
|
||||
|
||||
|
||||
|
||||
</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd>
|
||||
<span class="inheritName">Object</span>
|
||||
|
||||
<ul class="fullTree">
|
||||
<li>Object</li>
|
||||
|
||||
<li class="next">Hyde::Cookie</li>
|
||||
|
||||
</ul>
|
||||
<a href="#" class="inheritanceTree">show all</a>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>lib/hyde/util/cookie.rb</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
<h2>Overview</h2><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Utility class for handling cookies</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
||||
<ul class="summary">
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#key-instance_method" title="#key (instance method)">#<strong>key</strong> ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute key.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#params-instance_method" title="#params (instance method)">#<strong>params</strong> ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="note title readonly">readonly</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute params.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute value.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>
|
||||
Class Method Summary
|
||||
<small><a href="#" class="summary_toggle">collapse</a></small>
|
||||
</h2>
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#from_cookie_string-class_method" title="from_cookie_string (class method)">.<strong>from_cookie_string</strong>(data) ⇒ Array(Cookie) </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Create cookie(s) from a "Cookie: " format.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#from_setcookie_string-class_method" title="from_setcookie_string (class method)">.<strong>from_setcookie_string</strong>(data) ⇒ Cookie </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Create cookie from a "Set-Cookie: " format.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<h2>
|
||||
Instance Method Summary
|
||||
<small><a href="#" class="summary_toggle">collapse</a></small>
|
||||
</h2>
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(key, value, params = {}) ⇒ Cookie </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
<span class="note title constructor">constructor</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>A new instance of Cookie.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ String </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Convert cookie to "Set-Cookie: " string representation.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#to_short-instance_method" title="#to_short (instance method)">#<strong>to_short</strong> ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Convert cookie to "Cookie: " string representation (no params).</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<div id="constructor_details" class="method_details_list">
|
||||
<h2>Constructor Details</h2>
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="initialize-instance_method">
|
||||
|
||||
#<strong>initialize</strong>(key, value, params = {}) ⇒ <tt><span class='object_link'><a href="" title="Hyde::Cookie (class)">Cookie</a></span></tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Returns a new instance of Cookie.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>data</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'><p>raw cookie data</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
9
|
||||
10
|
||||
11
|
||||
12
|
||||
13</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/cookie.rb', line 9</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@key</span> <span class='op'>=</span> <span class='id identifier rubyid_key'>key</span>
|
||||
<span class='ivar'>@value</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
||||
<span class='ivar'>@params</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="instance_attr_details" class="attr_details">
|
||||
<h2>Instance Attribute Details</h2>
|
||||
|
||||
|
||||
<span id="key=-instance_method"></span>
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="key-instance_method">
|
||||
|
||||
#<strong>key</strong> ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Returns the value of attribute key.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
26
|
||||
27
|
||||
28</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/cookie.rb', line 26</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_key'>key</span>
|
||||
<span class='ivar'>@key</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<span id=""></span>
|
||||
<div class="method_details ">
|
||||
<h3 class="signature " id="params-instance_method">
|
||||
|
||||
#<strong>params</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Returns the value of attribute params.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
27
|
||||
28
|
||||
29</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/cookie.rb', line 27</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_params'>params</span>
|
||||
<span class='ivar'>@params</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<span id="value=-instance_method"></span>
|
||||
<div class="method_details ">
|
||||
<h3 class="signature " id="value-instance_method">
|
||||
|
||||
#<strong>value</strong> ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Returns the value of attribute value.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
26
|
||||
27
|
||||
28</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/cookie.rb', line 26</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
|
||||
<span class='ivar'>@value</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="class_method_details" class="method_details_list">
|
||||
<h2>Class Method Details</h2>
|
||||
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="from_cookie_string-class_method">
|
||||
|
||||
.<strong>from_cookie_string</strong>(data) ⇒ <tt>Array(<span class='object_link'><a href="" title="Hyde::Cookie (class)">Cookie</a></span>)</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Create cookie(s) from a "Cookie: " format</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>data</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'><p>value part of "Cookie: " header</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p class="tag_title">Returns:</p>
|
||||
<ul class="return">
|
||||
|
||||
<li>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Array(<span class='object_link'><a href="" title="Hyde::Cookie (class)">Cookie</a></span>)</tt>)</span>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/cookie.rb', line 41</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_from_cookie_string'>from_cookie_string</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>;</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_cookiestr'>cookiestr</span><span class='op'>|</span>
|
||||
<span class='const'><span class='object_link'><a href="" title="Hyde::Cookie (class)">Cookie</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Hyde::Cookie#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_cookiestr'>cookiestr</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:strip</span><span class='rparen'>)</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="from_setcookie_string-class_method">
|
||||
|
||||
.<strong>from_setcookie_string</strong>(data) ⇒ <tt><span class='object_link'><a href="" title="Hyde::Cookie (class)">Cookie</a></span></tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Create cookie from a "Set-Cookie: " format</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>data</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'><p>value part of "Set-Cookie: " header</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p class="tag_title">Returns:</p>
|
||||
<ul class="return">
|
||||
|
||||
<li>
|
||||
|
||||
|
||||
<span class='type'>(<tt><span class='object_link'><a href="" title="Hyde::Cookie (class)">Cookie</a></span></tt>)</span>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/cookie.rb', line 32</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_from_setcookie_string'>from_setcookie_string</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_kvpair'>kvpair</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Hyde.html" title="Hyde (module)">Hyde</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="Hyde::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_parse_value'><span class='object_link'><a href="Util.html#parse_value-class_method" title="Hyde::Util.parse_value (method)">parse_value</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_kvpair'>kvpair</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:strip</span><span class='rparen'>)</span>
|
||||
<span class='const'><span class='object_link'><a href="" title="Hyde::Cookie (class)">Cookie</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Hyde::Cookie#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="instance_method_details" class="method_details_list">
|
||||
<h2>Instance Method Details</h2>
|
||||
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="to_s-instance_method">
|
||||
|
||||
#<strong>to_s</strong> ⇒ <tt>String</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Convert cookie to "Set-Cookie: " string representation.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
<p class="tag_title">Returns:</p>
|
||||
<ul class="return">
|
||||
|
||||
<li>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
17
|
||||
18
|
||||
19</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/cookie.rb', line 17</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
||||
<span class='const'><span class='object_link'><a href="../Hyde.html" title="Hyde (module)">Hyde</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="Hyde::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_make_value'><span class='object_link'><a href="Util.html#make_value-class_method" title="Hyde::Util.make_value (method)">make_value</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_to_short'>to_short</span><span class='comma'>,</span> <span class='ivar'>@params</span><span class='rparen'>)</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="method_details ">
|
||||
<h3 class="signature " id="to_short-instance_method">
|
||||
|
||||
#<strong>to_short</strong> ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Convert cookie to "Cookie: " string representation (no params)</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
22
|
||||
23
|
||||
24</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/cookie.rb', line 22</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_to_short'>to_short</span>
|
||||
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_key'>key</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -117,7 +117,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -327,7 +327,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -954,7 +954,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -156,6 +156,29 @@
|
|||
<span class="summary_desc"><div class='inline'><p>Set path index.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#plugin-instance_method" title="#plugin (instance method)">#<strong>plugin</strong>(filename) ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Include an application as a child of path.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
@ -400,6 +423,77 @@ Blocks path access if a filter returns false.</p>
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="method_details ">
|
||||
<h3 class="signature " id="plugin-instance_method">
|
||||
|
||||
#<strong>plugin</strong>(filename) ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Include an application as a child of path.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>filename</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68
|
||||
69
|
||||
70
|
||||
71
|
||||
72</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/dsl/methods_path.rb', line 62</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_plugin'>plugin</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span>
|
||||
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_define_singleton_method'>define_singleton_method</span><span class='lparen'>(</span><span class='symbol'>:run</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_object'>object</span><span class='op'>|</span>
|
||||
<span class='kw'>unless</span> <span class='id identifier rubyid_object'>object</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="../../Hyde.html" title="Hyde (module)">Hyde</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Node.html" title="Hyde::Node (class)">Node</a></span></span>
|
||||
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>StandardError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>not a node instance or subclass instance</span><span class='tstring_end'>"</span></span>
|
||||
<span class='kw'>end</span>
|
||||
|
||||
<span class='id identifier rubyid_object'>object</span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='ivar'>@origin</span><span class='period'>.</span><span class='id identifier rubyid_children'>children</span><span class='period'>.</span><span class='id identifier rubyid_append'>append</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance_eval'>instance_eval</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_filename'>filename</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
||||
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_singleton_class'>singleton_class</span><span class='period'>.</span><span class='id identifier rubyid_undef_method'>undef_method</span> <span class='symbol'>:run</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="method_details ">
|
||||
|
@ -681,7 +775,7 @@ Does not modify path execution.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#erb-instance_method" title="#erb (instance method)">#<strong>erb</strong>(input, toplevel: nil, locals: nil) ⇒ Object </a>
|
||||
<a href="#erb-instance_method" title="#erb (instance method)">#<strong>erb</strong>(input, vars = {}) ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
|
@ -133,6 +133,29 @@
|
|||
<span class="summary_desc"><div class='inline'><p>Create a new erb template.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#erubi-instance_method" title="#erubi (instance method)">#<strong>erubi</strong>(input, vars = {}, freeze: true, capture: false) ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Create a new erb template using Erubi engine.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
@ -148,7 +171,7 @@
|
|||
<div class="method_details first">
|
||||
<h3 class="signature first" id="erb-instance_method">
|
||||
|
||||
#<strong>erb</strong>(input, toplevel: nil, locals: nil) ⇒ <tt>Object</tt>
|
||||
#<strong>erb</strong>(input, vars = {}) ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
@ -167,7 +190,7 @@
|
|||
<p class="tag_title">See Also:</p>
|
||||
<ul class="see">
|
||||
|
||||
<li>Template#new</li>
|
||||
<li>Hyde::DSL::ProbeConstructors.{Hyde{Hyde::Template{Hyde::Template#new}</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
@ -179,13 +202,110 @@
|
|||
|
||||
9
|
||||
10
|
||||
11</pre>
|
||||
11
|
||||
12
|
||||
13</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/dsl/constructors_probe.rb', line 9</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_erb'>erb</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='label'>toplevel:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>locals:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
||||
<span class='const'><span class='object_link'><a href="../../Hyde.html" title="Hyde (module)">Hyde</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Templates.html" title="Hyde::Templates (module)">Templates</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Templates/ERB.html" title="Hyde::Templates::ERB (class)">ERB</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Templates/ERB.html#initialize-instance_method" title="Hyde::Templates::ERB#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='label'>toplevel:</span> <span class='id identifier rubyid_toplevel'>toplevel</span><span class='comma'>,</span> <span class='label'>locals:</span> <span class='id identifier rubyid_locals'>locals</span><span class='rparen'>)</span>
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_erb'>erb</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_vars'>vars</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
||||
<span class='const'><span class='object_link'><a href="../../Hyde.html" title="Hyde (module)">Hyde</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Templates.html" title="Hyde::Templates (module)">Templates</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Templates/ERB.html" title="Hyde::Templates::ERB (class)">ERB</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Templates/ERB.html#initialize-instance_method" title="Hyde::Templates::ERB#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span>
|
||||
<span class='id identifier rubyid_vars'>vars</span><span class='comma'>,</span>
|
||||
<span class='label'>parent:</span> <span class='ivar'>@origin</span><span class='rparen'>)</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="method_details ">
|
||||
<h3 class="signature " id="erubi-instance_method">
|
||||
|
||||
#<strong>erubi</strong>(input, vars = {}, freeze: true, capture: false) ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Create a new erb template using Erubi engine</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>freeze</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'><p>whether to use frozen string literal</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>capture</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'><p>whether to enable output capturing</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<p class="tag_title">See Also:</p>
|
||||
<ul class="see">
|
||||
|
||||
<li>Hyde::DSL::ProbeConstructors.{Hyde{Hyde::Template{Hyde::Template#new}</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/dsl/constructors_probe.rb', line 19</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_erubi'>erubi</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_vars'>vars</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>freeze:</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='label'>capture:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
||||
<span class='const'><span class='object_link'><a href="../../Hyde.html" title="Hyde (module)">Hyde</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Templates.html" title="Hyde::Templates (module)">Templates</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Templates/Erubi.html" title="Hyde::Templates::Erubi (class)">Erubi</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Templates/Erubi.html#initialize-instance_method" title="Hyde::Templates::Erubi#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span>
|
||||
<span class='id identifier rubyid_vars'>vars</span><span class='comma'>,</span>
|
||||
<span class='label'>parent:</span> <span class='ivar'>@origin</span><span class='comma'>,</span>
|
||||
<span class='label'>freeze:</span> <span class='id identifier rubyid_freeze'>freeze</span><span class='comma'>,</span>
|
||||
<span class='label'>capture:</span> <span class='id identifier rubyid_capture'>capture</span><span class='rparen'>)</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -197,7 +317,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -778,7 +778,7 @@ If no value is provided, deletes all key entries</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -74,6 +74,11 @@
|
|||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Included in:</dt>
|
||||
<dd><span class='object_link'><a href="../TemplateContext.html" title="Hyde::TemplateContext (class)">TemplateContext</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
|
@ -83,19 +88,109 @@
|
|||
|
||||
</div>
|
||||
|
||||
<h2>Overview</h2><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Common methods for template contexts</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>
|
||||
Instance Method Summary
|
||||
<small><a href="#" class="summary_toggle">collapse</a></small>
|
||||
</h2>
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#import-instance_method" title="#import (instance method)">#<strong>import</strong>(filepath) ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Import a template part.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="instance_method_details" class="method_details_list">
|
||||
<h2>Instance Method Details</h2>
|
||||
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="import-instance_method">
|
||||
|
||||
#<strong>import</strong>(filepath) ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Import a template part</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
11
|
||||
12
|
||||
13</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/dsl/methods_template.rb', line 11</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_import'>import</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@parent_template</span><span class='period'>.</span><span class='id identifier rubyid_import'>import</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -350,7 +350,7 @@ Request's #splat and #param are passed to block.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -587,7 +587,7 @@ Request's #splat and #param are passed to block.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -459,7 +459,7 @@ Tries to serve files matched by handler</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -692,7 +692,7 @@ Does nothing by default, behaviour should be overriden through</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -887,7 +887,7 @@ Finds the next appropriate path to go to.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
|
||||
|
||||
<h3 class="inherited">Methods included from <span class='object_link'><a href="DSL/PathMethods.html" title="Hyde::DSL::PathMethods (module)">DSL::PathMethods</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/PathMethods.html#filter-instance_method" title="Hyde::DSL::PathMethods#filter (method)">#filter</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#index-instance_method" title="Hyde::DSL::PathMethods#index (method)">#index</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#postprocess-instance_method" title="Hyde::DSL::PathMethods#postprocess (method)">#postprocess</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#preprocess-instance_method" title="Hyde::DSL::PathMethods#preprocess (method)">#preprocess</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#remap-instance_method" title="Hyde::DSL::PathMethods#remap (method)">#remap</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#root-instance_method" title="Hyde::DSL::PathMethods#root (method)">#root</a></span></p>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/PathMethods.html#filter-instance_method" title="Hyde::DSL::PathMethods#filter (method)">#filter</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#index-instance_method" title="Hyde::DSL::PathMethods#index (method)">#index</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#plugin-instance_method" title="Hyde::DSL::PathMethods#plugin (method)">#plugin</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#postprocess-instance_method" title="Hyde::DSL::PathMethods#postprocess (method)">#postprocess</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#preprocess-instance_method" title="Hyde::DSL::PathMethods#preprocess (method)">#preprocess</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#remap-instance_method" title="Hyde::DSL::PathMethods#remap (method)">#remap</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#root-instance_method" title="Hyde::DSL::PathMethods#root (method)">#root</a></span></p>
|
||||
|
||||
|
||||
|
||||
|
@ -232,7 +232,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -542,7 +542,7 @@ Lighter version of match that doesn't assign any variables.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -231,7 +231,7 @@ Used primarily to create patterns for path definitions.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -638,7 +638,7 @@ Lighter version of match that doesn't assign any variables.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -547,7 +547,7 @@ Lighter version of match that doesn't assign any variables.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:05 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -455,7 +455,7 @@ This behaviour should only be used internally.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:03 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
|
||||
|
||||
<h3 class="inherited">Methods included from <span class='object_link'><a href="DSL/ProbeConstructors.html" title="Hyde::DSL::ProbeConstructors (module)">DSL::ProbeConstructors</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/ProbeConstructors.html#erb-instance_method" title="Hyde::DSL::ProbeConstructors#erb (method)">#erb</a></span></p>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/ProbeConstructors.html#erb-instance_method" title="Hyde::DSL::ProbeConstructors#erb (method)">#erb</a></span>, <span class='object_link'><a href="DSL/ProbeConstructors.html#erubi-instance_method" title="Hyde::DSL::ProbeConstructors#erubi (method)">#erubi</a></span></p>
|
||||
<div id="constructor_details" class="method_details_list">
|
||||
<h2>Constructor Details</h2>
|
||||
|
||||
|
@ -239,7 +239,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -217,7 +217,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:02 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -1538,7 +1538,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:03 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -1140,7 +1140,7 @@ If no value is provided, deletes all key entries</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:03 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -327,7 +327,7 @@
|
|||
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>handle.default</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_proc'>proc</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_code'>code</span><span class='comma'>,</span> <span class='label'>backtrace:</span> <span class='kw'>nil</span><span class='op'>|</span>
|
||||
<span class='id identifier rubyid_page'>page</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Hyde.html" title="Hyde (module)">Hyde</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Util.html" title="Hyde::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_default_error_page'><span class='object_link'><a href="Util.html#default_error_page-class_method" title="Hyde::Util.default_error_page (method)">default_error_page</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_code'>code</span><span class='comma'>,</span> <span class='id identifier rubyid_backtrace'>backtrace</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
||||
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>content-length</span><span class='label_end'>":</span> <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='comma'>,</span>
|
||||
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>content-length</span><span class='label_end'>":</span> <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_bytesize'>bytesize</span><span class='comma'>,</span>
|
||||
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>content-type</span><span class='label_end'>":</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>text/html</span><span class='tstring_end'>"</span></span>
|
||||
<span class='rbrace'>}</span>
|
||||
<span class='lbracket'>[</span><span class='id identifier rubyid_headers'>headers</span><span class='comma'>,</span> <span class='id identifier rubyid_page'>page</span><span class='rbracket'>]</span>
|
||||
|
@ -432,7 +432,7 @@ although server nesting for the purpose of creating virtual hosts is allowed.</p
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:03 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
|
||||
|
||||
<h3 class="inherited">Methods included from <span class='object_link'><a href="DSL/PathMethods.html" title="Hyde::DSL::PathMethods (module)">DSL::PathMethods</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/PathMethods.html#filter-instance_method" title="Hyde::DSL::PathMethods#filter (method)">#filter</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#index-instance_method" title="Hyde::DSL::PathMethods#index (method)">#index</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#postprocess-instance_method" title="Hyde::DSL::PathMethods#postprocess (method)">#postprocess</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#preprocess-instance_method" title="Hyde::DSL::PathMethods#preprocess (method)">#preprocess</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#remap-instance_method" title="Hyde::DSL::PathMethods#remap (method)">#remap</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#root-instance_method" title="Hyde::DSL::PathMethods#root (method)">#root</a></span></p>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/PathMethods.html#filter-instance_method" title="Hyde::DSL::PathMethods#filter (method)">#filter</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#index-instance_method" title="Hyde::DSL::PathMethods#index (method)">#index</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#plugin-instance_method" title="Hyde::DSL::PathMethods#plugin (method)">#plugin</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#postprocess-instance_method" title="Hyde::DSL::PathMethods#postprocess (method)">#postprocess</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#preprocess-instance_method" title="Hyde::DSL::PathMethods#preprocess (method)">#preprocess</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#remap-instance_method" title="Hyde::DSL::PathMethods#remap (method)">#remap</a></span>, <span class='object_link'><a href="DSL/PathMethods.html#root-instance_method" title="Hyde::DSL::PathMethods#root (method)">#root</a></span></p>
|
||||
|
||||
|
||||
|
||||
|
@ -152,7 +152,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:03 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -116,43 +116,12 @@
|
|||
|
||||
</div><div id="subclasses">
|
||||
<h2>Direct Known Subclasses</h2>
|
||||
<p class="children"><span class='object_link'><a href="Templates/ERB.html" title="Hyde::Templates::ERB (class)">Hyde::Templates::ERB</a></span></p>
|
||||
<p class="children"><span class='object_link'><a href="Templates/ERB.html" title="Hyde::Templates::ERB (class)">Hyde::Templates::ERB</a></span>, <span class='object_link'><a href="Templates/Erubi.html" title="Hyde::Templates::Erubi (class)">Hyde::Templates::Erubi</a></span></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
||||
<ul class="summary">
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#binding-instance_method" title="#binding (instance method)">#<strong>binding</strong> ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute binding.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -167,7 +136,30 @@
|
|||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(input, toplevel: nil, locals: nil) ⇒ Template </a>
|
||||
<a href="#import-instance_method" title="#import (instance method)">#<strong>import</strong>(filepath) ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Import a template from within current template.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(input, vars = {}, parent:) ⇒ Template </a>
|
||||
|
||||
|
||||
|
||||
|
@ -313,7 +305,7 @@
|
|||
<div class="method_details first">
|
||||
<h3 class="signature first" id="initialize-instance_method">
|
||||
|
||||
#<strong>initialize</strong>(input, toplevel: nil, locals: nil) ⇒ <tt><span class='object_link'><a href="" title="Hyde::Template (class)">Template</a></span></tt>
|
||||
#<strong>initialize</strong>(input, vars = {}, parent:) ⇒ <tt><span class='object_link'><a href="" title="Hyde::Template (class)">Template</a></span></tt>
|
||||
|
||||
|
||||
|
||||
|
@ -339,30 +331,42 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>context</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Binding</tt>, <tt>nil</tt>)</span>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'><p>template text</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>locals</span>
|
||||
<span class='name'>vars</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Hash</tt>, <tt>nil</tt>)</span>
|
||||
<span class='type'>(<tt>Hash</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
||||
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'><p>local variables for tempalte</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>parent</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="Hyde::Node (class)">Hyde::Node</a></span></tt>)</span>
|
||||
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'><p>parent node</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
@ -374,27 +378,29 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38</pre>
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46
|
||||
47
|
||||
48</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 30</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 39</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='label'>toplevel:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>locals:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_vars'>vars</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>parent:</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@template</span> <span class='op'>=</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>File</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span> <span class='op'>:</span> <span class='id identifier rubyid_input'>input</span>
|
||||
<span class='ivar'>@context</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="TemplateContext.html" title="Hyde::TemplateContext (class)">TemplateContext</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="TemplateContext.html#initialize-instance_method" title="Hyde::TemplateContext#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='kw'>self</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@parent</span> <span class='op'>=</span> <span class='id identifier rubyid_parent'>parent</span>
|
||||
<span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span> <span class='kw'>if</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>File</span>
|
||||
<span class='ivar'>@binding</span> <span class='op'>=</span> <span class='id identifier rubyid_toplevel'>toplevel</span> <span class='kw'>or</span> <span class='id identifier rubyid_binding'>binding</span>
|
||||
<span class='id identifier rubyid_locals'>locals</span><span class='op'>&.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
||||
<span class='ivar'>@binding</span><span class='period'>.</span><span class='id identifier rubyid_local_variable_set'>local_variable_set</span><span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@binding</span> <span class='op'>=</span> <span class='ivar'>@context</span><span class='period'>.</span><span class='id identifier rubyid_binding'>binding</span>
|
||||
<span class='id identifier rubyid_vars'>vars</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
||||
<span class='ivar'>@binding</span><span class='period'>.</span><span class='id identifier rubyid_local_variable_set'>local_variable_set</span><span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='ivar'>@context</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="TemplateContext.html" title="Hyde::TemplateContext (class)">TemplateContext</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="TemplateContext.html#initialize-instance_method" title="Hyde::TemplateContext#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -403,15 +409,15 @@
|
|||
|
||||
</div>
|
||||
|
||||
<div id="instance_attr_details" class="attr_details">
|
||||
<h2>Instance Attribute Details</h2>
|
||||
|
||||
<div id="instance_method_details" class="method_details_list">
|
||||
<h2>Instance Method Details</h2>
|
||||
|
||||
|
||||
<span id="binding=-instance_method"></span>
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="binding-instance_method">
|
||||
<h3 class="signature first" id="import-instance_method">
|
||||
|
||||
#<strong>binding</strong> ⇒ <tt>Object</tt>
|
||||
#<strong>import</strong>(filepath) ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
@ -419,7 +425,7 @@
|
|||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Returns the value of attribute binding.</p>
|
||||
<p>Import a template from within current template</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -433,30 +439,27 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
74
|
||||
75
|
||||
76</pre>
|
||||
85
|
||||
86
|
||||
87
|
||||
88
|
||||
89</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 74</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 85</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_binding'>binding</span>
|
||||
<span class='ivar'>@binding</span>
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_import'>import</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_newtemp'>newtemp</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_filepath'>filepath</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>parent:</span> <span class='ivar'>@parent</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_newtemp'>newtemp</span><span class='period'>.</span><span class='id identifier rubyid_binding'>binding</span> <span class='op'>=</span> <span class='ivar'>@binding</span>
|
||||
<span class='id identifier rubyid_newtemp'>newtemp</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="instance_method_details" class="method_details_list">
|
||||
<h2>Instance Method Details</h2>
|
||||
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="local_variable_get-instance_method">
|
||||
<div class="method_details ">
|
||||
<h3 class="signature " id="local_variable_get-instance_method">
|
||||
|
||||
#<strong>local_variable_get</strong>(key) ⇒ <tt>Object</tt>
|
||||
|
||||
|
@ -508,12 +511,12 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
50
|
||||
51
|
||||
52</pre>
|
||||
60
|
||||
61
|
||||
62</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 50</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 60</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_local_variable_get'>local_variable_get</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@binding</span><span class='period'>.</span><span class='id identifier rubyid_local_variable_get'>local_variable_get</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
|
||||
|
@ -574,12 +577,12 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
43
|
||||
44
|
||||
45</pre>
|
||||
53
|
||||
54
|
||||
55</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 43</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 53</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_local_variable_set'>local_variable_set</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@binding</span><span class='period'>.</span><span class='id identifier rubyid_local_variable_set'>local_variable_set</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
||||
|
@ -627,12 +630,12 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
56
|
||||
57
|
||||
58</pre>
|
||||
66
|
||||
67
|
||||
68</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 56</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 66</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_local_variables'>local_variables</span>
|
||||
<span class='ivar'>@binding</span><span class='period'>.</span><span class='id identifier rubyid_local_variables'>local_variables</span>
|
||||
|
@ -682,14 +685,14 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66</pre>
|
||||
72
|
||||
73
|
||||
74
|
||||
75
|
||||
76</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 62</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 72</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_override_locals'>override_locals</span><span class='lparen'>(</span><span class='id identifier rubyid_vars'>vars</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_vars'>vars</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
||||
|
@ -733,12 +736,12 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
70
|
||||
71
|
||||
72</pre>
|
||||
80
|
||||
81
|
||||
82</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 70</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 80</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
||||
<span class='comment'># ... (stub)
|
||||
|
@ -753,7 +756,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:03 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
|
||||
<dl>
|
||||
<dt>Includes:</dt>
|
||||
<dd><span class='object_link'><a href="DSL/CommonMethods.html" title="Hyde::DSL::CommonMethods (module)">DSL::CommonMethods</a></span>, <span class='object_link'><a href="DSL/ProbeConstructors.html" title="Hyde::DSL::ProbeConstructors (module)">DSL::ProbeConstructors</a></span>, <span class='object_link'><a href="DSL/ProbeMethods.html" title="Hyde::DSL::ProbeMethods (module)">DSL::ProbeMethods</a></span></dd>
|
||||
<dd><span class='object_link'><a href="DSL/CommonMethods.html" title="Hyde::DSL::CommonMethods (module)">DSL::CommonMethods</a></span>, <span class='object_link'><a href="DSL/ProbeConstructors.html" title="Hyde::DSL::ProbeConstructors (module)">DSL::ProbeConstructors</a></span>, <span class='object_link'><a href="DSL/ProbeMethods.html" title="Hyde::DSL::ProbeMethods (module)">DSL::ProbeMethods</a></span>, <span class='object_link'><a href="DSL/TemplateMethods.html" title="Hyde::DSL::TemplateMethods (module)">DSL::TemplateMethods</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
@ -132,7 +132,29 @@
|
|||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(parent) ⇒ TemplateContext </a>
|
||||
<a href="#binding-instance_method" title="#binding (instance method)">#<strong>binding</strong> ⇒ Binding </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'></div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(parent, parent_template) ⇒ TemplateContext </a>
|
||||
|
||||
|
||||
|
||||
|
@ -166,8 +188,19 @@
|
|||
|
||||
|
||||
|
||||
<h3 class="inherited">Methods included from <span class='object_link'><a href="DSL/ProbeConstructors.html" title="Hyde::DSL::ProbeConstructors (module)">DSL::ProbeConstructors</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/ProbeConstructors.html#erb-instance_method" title="Hyde::DSL::ProbeConstructors#erb (method)">#erb</a></span></p>
|
||||
<h3 class="inherited">Methods included from <span class='object_link'><a href="DSL/TemplateMethods.html" title="Hyde::DSL::TemplateMethods (module)">DSL::TemplateMethods</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/TemplateMethods.html#import-instance_method" title="Hyde::DSL::TemplateMethods#import (method)">#import</a></span></p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h3 class="inherited">Methods included from <span class='object_link'><a href="DSL/CommonMethods.html" title="Hyde::DSL::CommonMethods (module)">DSL::CommonMethods</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/CommonMethods.html#bounce-instance_method" title="Hyde::DSL::CommonMethods#bounce (method)">#bounce</a></span>, <span class='object_link'><a href="DSL/CommonMethods.html#die-instance_method" title="Hyde::DSL::CommonMethods#die (method)">#die</a></span></p>
|
||||
|
||||
|
||||
|
||||
|
@ -188,15 +221,15 @@
|
|||
|
||||
|
||||
|
||||
<h3 class="inherited">Methods included from <span class='object_link'><a href="DSL/CommonMethods.html" title="Hyde::DSL::CommonMethods (module)">DSL::CommonMethods</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/CommonMethods.html#bounce-instance_method" title="Hyde::DSL::CommonMethods#bounce (method)">#bounce</a></span>, <span class='object_link'><a href="DSL/CommonMethods.html#die-instance_method" title="Hyde::DSL::CommonMethods#die (method)">#die</a></span></p>
|
||||
<h3 class="inherited">Methods included from <span class='object_link'><a href="DSL/ProbeConstructors.html" title="Hyde::DSL::ProbeConstructors (module)">DSL::ProbeConstructors</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="DSL/ProbeConstructors.html#erb-instance_method" title="Hyde::DSL::ProbeConstructors#erb (method)">#erb</a></span>, <span class='object_link'><a href="DSL/ProbeConstructors.html#erubi-instance_method" title="Hyde::DSL::ProbeConstructors#erubi (method)">#erubi</a></span></p>
|
||||
<div id="constructor_details" class="method_details_list">
|
||||
<h2>Constructor Details</h2>
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="initialize-instance_method">
|
||||
|
||||
#<strong>initialize</strong>(parent) ⇒ <tt><span class='object_link'><a href="" title="Hyde::TemplateContext (class)">TemplateContext</a></span></tt>
|
||||
#<strong>initialize</strong>(parent, parent_template) ⇒ <tt><span class='object_link'><a href="" title="Hyde::TemplateContext (class)">TemplateContext</a></span></tt>
|
||||
|
||||
|
||||
|
||||
|
@ -218,15 +251,17 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
19
|
||||
20
|
||||
21</pre>
|
||||
27
|
||||
28
|
||||
29
|
||||
30</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 19</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 27</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_parent'>parent</span><span class='comma'>,</span> <span class='id identifier rubyid_parent_template'>parent_template</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@origin</span> <span class='op'>=</span> <span class='id identifier rubyid_parent'>parent</span>
|
||||
<span class='ivar'>@parent_template</span> <span class='op'>=</span> <span class='id identifier rubyid_parent_template'>parent_template</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -236,10 +271,68 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div id="instance_method_details" class="method_details_list">
|
||||
<h2>Instance Method Details</h2>
|
||||
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="binding-instance_method">
|
||||
|
||||
#<strong>binding</strong> ⇒ <tt>Binding</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
<p class="tag_title">Returns:</p>
|
||||
<ul class="return">
|
||||
|
||||
<li>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Binding</tt>)</span>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
23
|
||||
24
|
||||
25</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template.rb', line 23</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_binding'>binding</span>
|
||||
<span class='const'>Kernel</span><span class='period'>.</span><span class='id identifier rubyid_binding'>binding</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:03 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>lib/hyde/template.rb<span class="defines">,<br />
|
||||
lib/hyde/template/erb.rb</span>
|
||||
lib/hyde/template/erb.rb,<br /> lib/hyde/template/erubi.rb</span>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
@ -101,7 +101,7 @@
|
|||
|
||||
|
||||
|
||||
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Templates/ERB.html" title="Hyde::Templates::ERB (class)">ERB</a></span>
|
||||
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Templates/ERB.html" title="Hyde::Templates::ERB (class)">ERB</a></span>, <span class='object_link'><a href="Templates/Erubi.html" title="Hyde::Templates::Erubi (class)">Erubi</a></span>
|
||||
|
||||
|
||||
</p>
|
||||
|
@ -117,7 +117,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -117,11 +117,6 @@
|
|||
|
||||
|
||||
|
||||
<h2>Instance Attribute Summary</h2>
|
||||
|
||||
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Template.html" title="Hyde::Template (class)">Hyde::Template</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="../Template.html#binding-instance_method" title="Hyde::Template#binding (method)">#binding</a></span></p>
|
||||
|
||||
|
||||
|
||||
<h2>
|
||||
|
@ -134,7 +129,7 @@
|
|||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(input, toplevel: nil, locals: nil) ⇒ ERB </a>
|
||||
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(input, vars = nil, parent:) ⇒ ERB </a>
|
||||
|
||||
|
||||
|
||||
|
@ -192,14 +187,14 @@
|
|||
|
||||
|
||||
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Template.html" title="Hyde::Template (class)">Hyde::Template</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="../Template.html#local_variable_get-instance_method" title="Hyde::Template#local_variable_get (method)">#local_variable_get</a></span>, <span class='object_link'><a href="../Template.html#local_variable_set-instance_method" title="Hyde::Template#local_variable_set (method)">#local_variable_set</a></span>, <span class='object_link'><a href="../Template.html#local_variables-instance_method" title="Hyde::Template#local_variables (method)">#local_variables</a></span>, <span class='object_link'><a href="../Template.html#override_locals-instance_method" title="Hyde::Template#override_locals (method)">#override_locals</a></span></p>
|
||||
<p class="inherited"><span class='object_link'><a href="../Template.html#import-instance_method" title="Hyde::Template#import (method)">#import</a></span>, <span class='object_link'><a href="../Template.html#local_variable_get-instance_method" title="Hyde::Template#local_variable_get (method)">#local_variable_get</a></span>, <span class='object_link'><a href="../Template.html#local_variable_set-instance_method" title="Hyde::Template#local_variable_set (method)">#local_variable_set</a></span>, <span class='object_link'><a href="../Template.html#local_variables-instance_method" title="Hyde::Template#local_variables (method)">#local_variables</a></span>, <span class='object_link'><a href="../Template.html#override_locals-instance_method" title="Hyde::Template#override_locals (method)">#override_locals</a></span></p>
|
||||
<div id="constructor_details" class="method_details_list">
|
||||
<h2>Constructor Details</h2>
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="initialize-instance_method">
|
||||
|
||||
#<strong>initialize</strong>(input, toplevel: nil, locals: nil) ⇒ <tt><span class='object_link'><a href="" title="Hyde::Templates::ERB (class)">ERB</a></span></tt>
|
||||
#<strong>initialize</strong>(input, vars = nil, parent:) ⇒ <tt><span class='object_link'><a href="" title="Hyde::Templates::ERB (class)">ERB</a></span></tt>
|
||||
|
||||
|
||||
|
||||
|
@ -218,7 +213,7 @@
|
|||
<p class="tag_title">See Also:</p>
|
||||
<ul class="see">
|
||||
|
||||
<li>Hyde::Template#new</li>
|
||||
<li>Hyde::Templates::ERB.{Hyde{Hyde::Template{Hyde::Template#new}</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
@ -231,14 +226,24 @@
|
|||
11
|
||||
12
|
||||
13
|
||||
14</pre>
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template/erb.rb', line 11</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='label'>toplevel:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>locals:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_vars'>vars</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>parent:</span><span class='rparen'>)</span>
|
||||
<span class='kw'>super</span>
|
||||
<span class='ivar'>@template</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>ERB</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@template</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_varname'>varname</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_part_</span><span class='embexpr_beg'>#{</span><span class='const'>SecureRandom</span><span class='period'>.</span><span class='id identifier rubyid_hex'>hex</span><span class='lparen'>(</span><span class='int'>10</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
||||
<span class='kw'>while</span> <span class='ivar'>@binding</span><span class='period'>.</span><span class='id identifier rubyid_local_variable_defined?'>local_variable_defined?</span> <span class='id identifier rubyid_varname'>varname</span>
|
||||
<span class='id identifier rubyid_varname'>varname</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_part_</span><span class='embexpr_beg'>#{</span><span class='const'>SecureRandom</span><span class='period'>.</span><span class='id identifier rubyid_hex'>hex</span><span class='lparen'>(</span><span class='int'>10</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='ivar'>@template</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>ERB</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@template</span><span class='comma'>,</span> <span class='label'>eoutvar:</span> <span class='id identifier rubyid_varname'>varname</span><span class='rparen'>)</span>
|
||||
<span class='ivar'>@template</span><span class='period'>.</span><span class='id identifier rubyid_filename'>filename</span> <span class='op'>=</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>File</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>(Inline)</span><span class='tstring_end'>"</span></span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -277,19 +282,15 @@
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21</pre>
|
||||
22
|
||||
23
|
||||
24</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template/erb.rb', line 17</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template/erb.rb', line 22</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
||||
<span class='ivar'>@context</span><span class='period'>.</span><span class='id identifier rubyid_instance_exec'>instance_exec</span><span class='lparen'>(</span><span class='ivar'>@template</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_template'>template</span><span class='op'>|</span>
|
||||
<span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span> <span class='ivar'>@binding</span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='ivar'>@template</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span> <span class='ivar'>@binding</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -301,7 +302,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,330 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Class: Hyde::Templates::Erubi
|
||||
|
||||
— Documentation by YARD 0.9.34
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
||||
|
||||
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "Hyde::Templates::Erubi";
|
||||
relpath = '../../';
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="nav_wrap">
|
||||
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
||||
<div id="resizer"></div>
|
||||
</div>
|
||||
|
||||
<div id="main" tabindex="-1">
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../../_index.html">Index (E)</a> »
|
||||
<span class='title'><span class='object_link'><a href="../../Hyde.html" title="Hyde (module)">Hyde</a></span></span> » <span class='title'><span class='object_link'><a href="../Templates.html" title="Hyde::Templates (module)">Templates</a></span></span>
|
||||
»
|
||||
<span class="title">Erubi</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="search">
|
||||
|
||||
<a class="full_list_link" id="class_list_link"
|
||||
href="../../class_list.html">
|
||||
|
||||
<svg width="24" height="24">
|
||||
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
||||
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
||||
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Class: Hyde::Templates::Erubi
|
||||
|
||||
|
||||
|
||||
</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd>
|
||||
<span class="inheritName"><span class='object_link'><a href="../Template.html" title="Hyde::Template (class)">Hyde::Template</a></span></span>
|
||||
|
||||
<ul class="fullTree">
|
||||
<li>Object</li>
|
||||
|
||||
<li class="next"><span class='object_link'><a href="../Template.html" title="Hyde::Template (class)">Hyde::Template</a></span></li>
|
||||
|
||||
<li class="next">Hyde::Templates::Erubi</li>
|
||||
|
||||
</ul>
|
||||
<a href="#" class="inheritanceTree">show all</a>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>lib/hyde/template/erubi.rb</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
<h2>Overview</h2><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Erubi (ERB) template language adapter</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2>
|
||||
Instance Method Summary
|
||||
<small><a href="#" class="summary_toggle">collapse</a></small>
|
||||
</h2>
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(input, vars = nil, parent:, freeze: true, capture: false) ⇒ Erubi </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
<span class="note title constructor">constructor</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>A new instance of Erubi.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
<li class="public ">
|
||||
<span class="summary_signature">
|
||||
|
||||
<a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> ⇒ Object </a>
|
||||
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span class="summary_desc"><div class='inline'><p>Run the template.</p>
|
||||
</div></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Template.html" title="Hyde::Template (class)">Hyde::Template</a></span></h3>
|
||||
<p class="inherited"><span class='object_link'><a href="../Template.html#import-instance_method" title="Hyde::Template#import (method)">#import</a></span>, <span class='object_link'><a href="../Template.html#local_variable_get-instance_method" title="Hyde::Template#local_variable_get (method)">#local_variable_get</a></span>, <span class='object_link'><a href="../Template.html#local_variable_set-instance_method" title="Hyde::Template#local_variable_set (method)">#local_variable_set</a></span>, <span class='object_link'><a href="../Template.html#local_variables-instance_method" title="Hyde::Template#local_variables (method)">#local_variables</a></span>, <span class='object_link'><a href="../Template.html#override_locals-instance_method" title="Hyde::Template#override_locals (method)">#override_locals</a></span></p>
|
||||
<div id="constructor_details" class="method_details_list">
|
||||
<h2>Constructor Details</h2>
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="initialize-instance_method">
|
||||
|
||||
#<strong>initialize</strong>(input, vars = nil, parent:, freeze: true, capture: false) ⇒ <tt><span class='object_link'><a href="" title="Hyde::Templates::Erubi (class)">Erubi</a></span></tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Returns a new instance of Erubi.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
<p class="tag_title">See Also:</p>
|
||||
<ul class="see">
|
||||
|
||||
<li>Hyde::Templates::Erubi.{Hyde{Hyde::Template{Hyde::Template#new}</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template/erubi.rb', line 11</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span>
|
||||
<span class='id identifier rubyid_vars'>vars</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
||||
<span class='label'>parent:</span><span class='comma'>,</span>
|
||||
<span class='label'>freeze:</span> <span class='kw'>true</span><span class='comma'>,</span>
|
||||
<span class='label'>capture:</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
||||
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_vars'>vars</span><span class='comma'>,</span> <span class='label'>parent:</span> <span class='id identifier rubyid_parent'>parent</span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_varname'>varname</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_part_</span><span class='embexpr_beg'>#{</span><span class='const'>SecureRandom</span><span class='period'>.</span><span class='id identifier rubyid_hex'>hex</span><span class='lparen'>(</span><span class='int'>10</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
||||
<span class='kw'>while</span> <span class='ivar'>@binding</span><span class='period'>.</span><span class='id identifier rubyid_local_variable_defined?'>local_variable_defined?</span> <span class='id identifier rubyid_varname'>varname</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
||||
<span class='id identifier rubyid_varname'>varname</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>_part_</span><span class='embexpr_beg'>#{</span><span class='const'>SecureRandom</span><span class='period'>.</span><span class='id identifier rubyid_hex'>hex</span><span class='lparen'>(</span><span class='int'>10</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='id identifier rubyid_properties'>properties</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
||||
<span class='label'>filename:</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>File</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>(Inline)</span><span class='tstring_end'>"</span></span><span class='comma'>,</span>
|
||||
<span class='label'>bufvar:</span> <span class='id identifier rubyid_varname'>varname</span><span class='comma'>,</span>
|
||||
<span class='label'>freeze:</span> <span class='id identifier rubyid_freeze'>freeze</span>
|
||||
<span class='rbrace'>}</span>
|
||||
<span class='id identifier rubyid_engine'>engine</span> <span class='op'>=</span> <span class='id identifier rubyid_capture'>capture</span> <span class='op'>?</span> <span class='op'>::</span><span class='const'>Erubi</span><span class='op'>::</span><span class='const'>CaptureEndEngine</span> <span class='op'>:</span> <span class='op'>::</span><span class='const'>Erubi</span><span class='op'>::</span><span class='const'>Engine</span>
|
||||
<span class='ivar'>@template</span> <span class='op'>=</span> <span class='id identifier rubyid_engine'>engine</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@template</span><span class='comma'>,</span> <span class='id identifier rubyid_properties'>properties</span><span class='rparen'>)</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="instance_method_details" class="method_details_list">
|
||||
<h2>Instance Method Details</h2>
|
||||
|
||||
|
||||
<div class="method_details first">
|
||||
<h3 class="signature first" id="run-instance_method">
|
||||
|
||||
#<strong>run</strong> ⇒ <tt>Object</tt>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3><div class="docstring">
|
||||
<div class="discussion">
|
||||
<p>Run the template.</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
31
|
||||
32
|
||||
33</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/template/erubi.rb', line 31</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
||||
<span class='ivar'>@binding</span><span class='period'>.</span><span class='id identifier rubyid_eval'>eval</span><span class='lparen'>(</span><span class='ivar'>@template</span><span class='period'>.</span><span class='id identifier rubyid_src'>src</span><span class='rparen'>)</span>
|
||||
<span class='kw'>end</span></pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -424,7 +424,8 @@ Taken from WEBrick <a href="https://github.com/ruby/webrick/blob/master/lib/webr
|
|||
110
|
||||
111
|
||||
112
|
||||
113</pre>
|
||||
113
|
||||
114</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/html.rb', line 87</span>
|
||||
|
@ -438,6 +439,7 @@ Taken from WEBrick <a href="https://github.com/ruby/webrick/blob/master/lib/webr
|
|||
</span><span class='tstring_content'> <head>
|
||||
</span><span class='tstring_content'> <title></span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="" title="Hyde::Util (module)">Util</a></span></span><span class='period'>.</span><span class='id identifier rubyid_escape_html'><span class='object_link'><a href="#escape_html-class_method" title="Hyde::Util.escape_html (method)">escape_html</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_errortext'>errortext</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'></title>
|
||||
</span><span class='tstring_content'> <style> .header {padding: 0.5rem; overflow: auto;} .title { font-weight: bolder; font-size: 48px; margin: 10px 10px; text-shadow: 1px 1px 1px #202222, 2px 2px 2px #404444; float: left } body { margin: 0; } .text { font-size 1rem; } .small { color: #7D7D7D; font-size: 12px;} .code { font-family: monospace; font-size: 0.7rem; } </style>
|
||||
</span><span class='tstring_content'> <meta charset="utf-8">
|
||||
</span><span class='tstring_content'> </head>
|
||||
</span><span class='tstring_content'> <body>
|
||||
</span><span class='tstring_content'> <div class="header">
|
||||
|
@ -602,11 +604,6 @@ This function is not adequate to prevent string interpolation.</p>
|
|||
<pre class="lines">
|
||||
|
||||
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
|
@ -616,14 +613,19 @@ This function is not adequate to prevent string interpolation.</p>
|
|||
36
|
||||
37
|
||||
38
|
||||
39</pre>
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/header.rb', line 25</span>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/header.rb', line 30</span>
|
||||
|
||||
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_make_value'>make_value</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='id identifier rubyid_sep'>sep</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>;</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
||||
<span class='kw'>unless</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^[\w!</span><span class='tstring_content'>#$%&'*+-.^_`|~]*=?[^[:cntrl:]\\",;]+$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span>
|
||||
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>StandardError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>input contains invalid characters</span><span class='tstring_end'>"</span></span>
|
||||
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>StandardError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>input format is invalid</span><span class='tstring_end'>"</span></span>
|
||||
<span class='kw'>end</span>
|
||||
|
||||
<span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='id identifier rubyid_input'>input</span>
|
||||
|
@ -715,7 +717,12 @@ This function is not adequate to prevent string interpolation.</p>
|
|||
16
|
||||
17
|
||||
18
|
||||
19</pre>
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'lib/hyde/util/header.rb', line 11</span>
|
||||
|
@ -724,7 +731,12 @@ This function is not adequate to prevent string interpolation.</p>
|
|||
<span class='id identifier rubyid_parts'>parts</span> <span class='op'>=</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='id identifier rubyid_sep'>sep</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_x'>x</span><span class='op'>|</span> <span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_decode_uri_component'>decode_uri_component</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span> <span class='rbrace'>}</span>
|
||||
<span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='id identifier rubyid_parts'>parts</span><span class='period'>.</span><span class='id identifier rubyid_shift'>shift</span>
|
||||
<span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='id identifier rubyid_parts'>parts</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_raw'>raw</span><span class='op'>|</span>
|
||||
<span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_raw'>raw</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^([^=]*)(?:=(.*)|)\Z</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='rbracket'>]</span>
|
||||
<span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_raw'>raw</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>
|
||||
\A # beginning of string
|
||||
([!-~&&[^=;,]]+) # key
|
||||
(?:=([\s!-~&&[^;,]]*)|) # optional value
|
||||
\Z # end of sting
|
||||
</span><span class='regexp_end'>/x</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='rbracket'>]</span>
|
||||
<span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='op'>&.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^".*"$</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_value'>value</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='op'>-</span><span class='int'>2</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='kw'>or</span> <span class='kw'>true</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
||||
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
|
||||
<span class='lbracket'>[</span><span class='id identifier rubyid_base'>base</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rbracket'>]</span>
|
||||
|
@ -807,7 +819,7 @@ This function is not adequate to prevent string interpolation.</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -847,7 +847,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -589,7 +589,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -477,7 +477,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -489,7 +489,7 @@ Key semantics:</p>
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:04 2023 by
|
||||
Generated on Sat Sep 16 18:32:13 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -94,6 +94,13 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="Hyde/Cookie.html" title="Hyde::Cookie (class)">Cookie</a></span>
|
||||
|
||||
<small>(Hyde)</small>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
|
@ -131,6 +138,13 @@
|
|||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="Hyde/Templates/Erubi.html" title="Hyde::Templates::Erubi (class)">Erubi</a></span>
|
||||
|
||||
<small>(Hyde::Templates)</small>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
|
@ -524,7 +538,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -59,13 +59,13 @@
|
|||
|
||||
<div id="content"><div id='filecontents'><h1 id="the-strange-case-of-dr-rack-and-mr-hyde">The strange case of Dr. Rack and Mr. Hyde</h1>
|
||||
|
||||
<p>Hyde is a library that provides a DSL for creating HTTP servers. As of now it is using Rack as the webserver adapter, but ideally it shouldn't take much work to make it run on top of any webserver.</p>
|
||||
<p>Hyde is a library that provides a DSL for creating web applications. As of now it is using Rack as the webserver adapter, but ideally it shouldn't take much work to make it run on top of any webserver.</p>
|
||||
|
||||
<p>Hyde was made mostly for fun. Ideally it will become something more, but as of yet it's just an experiment revolving around Ruby Metaprogramming and its DSL capabilities.</p>
|
||||
|
||||
<h1 id="examples">Examples</h1>
|
||||
|
||||
<p>A simple "Hello, World!" HTTP API using Hyde</p>
|
||||
<p>A simple "Hello, World!" app using Hyde</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hyde</span><span class='tstring_end'>'</span></span>
|
||||
|
||||
|
@ -79,7 +79,7 @@
|
|||
<span class='id identifier rubyid_run'>run</span> <span class='id identifier rubyid_app'>app</span>
|
||||
</code></pre>
|
||||
|
||||
<p>A push/pull stack as an HTTP API</p>
|
||||
<p>A push/pull stack as an app</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hyde</span><span class='tstring_end'>'</span></span>
|
||||
|
||||
|
@ -155,7 +155,7 @@
|
|||
<span class='kw'>end</span>
|
||||
<span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>answer</span><span class='tstring_end'>"</span></span> <span class='kw'>do</span>
|
||||
<span class='id identifier rubyid_header'>header</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>content-type</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>application/json</span><span class='tstring_end'>"</span></span>
|
||||
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>\\{"answer":42, "desc":"something important!"\\}</span><span class='tstring_end'>'</span></span>
|
||||
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>{"answer":42, "desc":"something important!"}</span><span class='tstring_end'>'</span></span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='kw'>end</span>
|
||||
|
@ -190,7 +190,7 @@
|
|||
</div></div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -59,13 +59,13 @@
|
|||
|
||||
<div id="content"><div id='filecontents'><h1 id="the-strange-case-of-dr-rack-and-mr-hyde">The strange case of Dr. Rack and Mr. Hyde</h1>
|
||||
|
||||
<p>Hyde is a library that provides a DSL for creating HTTP servers. As of now it is using Rack as the webserver adapter, but ideally it shouldn't take much work to make it run on top of any webserver.</p>
|
||||
<p>Hyde is a library that provides a DSL for creating web applications. As of now it is using Rack as the webserver adapter, but ideally it shouldn't take much work to make it run on top of any webserver.</p>
|
||||
|
||||
<p>Hyde was made mostly for fun. Ideally it will become something more, but as of yet it's just an experiment revolving around Ruby Metaprogramming and its DSL capabilities.</p>
|
||||
|
||||
<h1 id="examples">Examples</h1>
|
||||
|
||||
<p>A simple "Hello, World!" HTTP API using Hyde</p>
|
||||
<p>A simple "Hello, World!" app using Hyde</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hyde</span><span class='tstring_end'>'</span></span>
|
||||
|
||||
|
@ -79,7 +79,7 @@
|
|||
<span class='id identifier rubyid_run'>run</span> <span class='id identifier rubyid_app'>app</span>
|
||||
</code></pre>
|
||||
|
||||
<p>A push/pull stack as an HTTP API</p>
|
||||
<p>A push/pull stack as an app</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>hyde</span><span class='tstring_end'>'</span></span>
|
||||
|
||||
|
@ -155,7 +155,7 @@
|
|||
<span class='kw'>end</span>
|
||||
<span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>answer</span><span class='tstring_end'>"</span></span> <span class='kw'>do</span>
|
||||
<span class='id identifier rubyid_header'>header</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>content-type</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>application/json</span><span class='tstring_end'>"</span></span>
|
||||
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>\\{"answer":42, "desc":"something important!"\\}</span><span class='tstring_end'>'</span></span>
|
||||
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>{"answer":42, "desc":"something important!"}</span><span class='tstring_end'>'</span></span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='kw'>end</span>
|
||||
<span class='kw'>end</span>
|
||||
|
@ -190,7 +190,7 @@
|
|||
</div></div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
|
@ -86,8 +86,8 @@
|
|||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Template.html#binding-instance_method" title="Hyde::Template#binding (method)">#binding</a></span>
|
||||
<small>Hyde::Template</small>
|
||||
<span class='object_link'><a href="Hyde/TemplateContext.html#binding-instance_method" title="Hyde::TemplateContext#binding (method)">#binding</a></span>
|
||||
<small>Hyde::TemplateContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
@ -237,6 +237,14 @@
|
|||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/ProbeConstructors.html#erubi-instance_method" title="Hyde::DSL::ProbeConstructors#erubi (method)">#erubi</a></span>
|
||||
<small>Hyde::DSL::ProbeConstructors</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util.html#escape_html-class_method" title="Hyde::Util.escape_html (method)">escape_html</a></span>
|
||||
<small>Hyde::Util</small>
|
||||
|
@ -244,7 +252,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/ProbeMethods.html#file-instance_method" title="Hyde::DSL::ProbeMethods#file (method)">#file</a></span>
|
||||
<small>Hyde::DSL::ProbeMethods</small>
|
||||
|
@ -252,7 +260,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/FormPart.html#file%3F-instance_method" title="Hyde::Util::FormPart#file? (method)">#file?</a></span>
|
||||
<small>Hyde::Util::FormPart</small>
|
||||
|
@ -260,7 +268,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/FormPart.html#filename-instance_method" title="Hyde::Util::FormPart#filename (method)">#filename</a></span>
|
||||
<small>Hyde::Util::FormPart</small>
|
||||
|
@ -268,7 +276,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#filepath-instance_method" title="Hyde::Request#filepath (method)">#filepath</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -276,7 +284,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/FormPart.html#filetype-instance_method" title="Hyde::Util::FormPart#filetype (method)">#filetype</a></span>
|
||||
<small>Hyde::Util::FormPart</small>
|
||||
|
@ -284,7 +292,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Path.html#filter-instance_method" title="Hyde::Path#filter (method)">#filter</a></span>
|
||||
<small>Hyde::Path</small>
|
||||
|
@ -292,7 +300,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathMethods.html#filter-instance_method" title="Hyde::DSL::PathMethods#filter (method)">#filter</a></span>
|
||||
<small>Hyde::DSL::PathMethods</small>
|
||||
|
@ -300,7 +308,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Response.html#finalize-instance_method" title="Hyde::Response#finalize (method)">#finalize</a></span>
|
||||
<small>Hyde::Response</small>
|
||||
|
@ -308,7 +316,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/ProbeMethods.html#form-instance_method" title="Hyde::DSL::ProbeMethods#form (method)">#form</a></span>
|
||||
<small>Hyde::DSL::ProbeMethods</small>
|
||||
|
@ -316,7 +324,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/ProbeMethods.html#form%3F-instance_method" title="Hyde::DSL::ProbeMethods#form? (method)">#form?</a></span>
|
||||
<small>Hyde::DSL::ProbeMethods</small>
|
||||
|
@ -324,7 +332,23 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Cookie.html#from_cookie_string-class_method" title="Hyde::Cookie.from_cookie_string (method)">from_cookie_string</a></span>
|
||||
<small>Hyde::Cookie</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Cookie.html#from_setcookie_string-class_method" title="Hyde::Cookie.from_setcookie_string (method)">from_setcookie_string</a></span>
|
||||
<small>Hyde::Cookie</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathConstructors.html#get-instance_method" title="Hyde::DSL::PathConstructors#get (method)">#get</a></span>
|
||||
<small>Hyde::DSL::PathConstructors</small>
|
||||
|
@ -332,7 +356,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Node.html#go-instance_method" title="Hyde::Node#go (method)">#go</a></span>
|
||||
<small>Hyde::Node</small>
|
||||
|
@ -340,7 +364,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathConstructors.html#head-instance_method" title="Hyde::DSL::PathConstructors#head (method)">#head</a></span>
|
||||
<small>Hyde::DSL::PathConstructors</small>
|
||||
|
@ -348,7 +372,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/ProbeMethods.html#header-instance_method" title="Hyde::DSL::ProbeMethods#header (method)">#header</a></span>
|
||||
<small>Hyde::DSL::ProbeMethods</small>
|
||||
|
@ -356,7 +380,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#headers-instance_method" title="Hyde::Request#headers (method)">#headers</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -364,7 +388,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Response.html#headers-instance_method" title="Hyde::Response#headers (method)">#headers</a></span>
|
||||
<small>Hyde::Response</small>
|
||||
|
@ -372,7 +396,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/FormPart.html#headers=-instance_method" title="Hyde::Util::FormPart#headers= (method)">#headers=</a></span>
|
||||
<small>Hyde::Util::FormPart</small>
|
||||
|
@ -380,103 +404,119 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathMethods.html#index-instance_method" title="Hyde::DSL::PathMethods#index (method)">#index</a></span>
|
||||
<small>Hyde::DSL::PathMethods</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Node.html#initialize-instance_method" title="Hyde::Node#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Node</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/ProcessorContext.html#initialize-instance_method" title="Hyde::ProcessorContext#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::ProcessorContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/PathContext.html#initialize-instance_method" title="Hyde::PathContext#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::PathContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Path.html#initialize-instance_method" title="Hyde::Path#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Path</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/ProbeContext.html#initialize-instance_method" title="Hyde::ProbeContext#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::ProbeContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Probe.html#initialize-instance_method" title="Hyde::Probe#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Probe</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Server.html#initialize-instance_method" title="Hyde::Server#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Server</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#initialize-instance_method" title="Hyde::Request#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Response.html#initialize-instance_method" title="Hyde::Response#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Response</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/TemplateContext.html#initialize-instance_method" title="Hyde::TemplateContext#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::TemplateContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Template.html#initialize-instance_method" title="Hyde::Template#initialize (method)">#initialize</a></span>
|
||||
<span class='object_link'><a href="Hyde/Template.html#import-instance_method" title="Hyde::Template#import (method)">#import</a></span>
|
||||
<small>Hyde::Template</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/TemplateMethods.html#import-instance_method" title="Hyde::DSL::TemplateMethods#import (method)">#import</a></span>
|
||||
<small>Hyde::DSL::TemplateMethods</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathMethods.html#index-instance_method" title="Hyde::DSL::PathMethods#index (method)">#index</a></span>
|
||||
<small>Hyde::DSL::PathMethods</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Node.html#initialize-instance_method" title="Hyde::Node#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Node</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/ProcessorContext.html#initialize-instance_method" title="Hyde::ProcessorContext#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::ProcessorContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/PathContext.html#initialize-instance_method" title="Hyde::PathContext#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::PathContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Path.html#initialize-instance_method" title="Hyde::Path#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Path</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/ProbeContext.html#initialize-instance_method" title="Hyde::ProbeContext#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::ProbeContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Probe.html#initialize-instance_method" title="Hyde::Probe#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Probe</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Server.html#initialize-instance_method" title="Hyde::Server#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Server</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#initialize-instance_method" title="Hyde::Request#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Response.html#initialize-instance_method" title="Hyde::Response#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Response</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/TemplateContext.html#initialize-instance_method" title="Hyde::TemplateContext#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::TemplateContext</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Template.html#initialize-instance_method" title="Hyde::Template#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Template</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/Query.html#initialize-instance_method" title="Hyde::Util::Query#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Util::Query</small>
|
||||
|
@ -484,6 +524,14 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Cookie.html#initialize-instance_method" title="Hyde::Cookie#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Cookie</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/Lookup.html#initialize-instance_method" title="Hyde::Util::Lookup#initialize (method)">#initialize</a></span>
|
||||
|
@ -509,6 +557,14 @@
|
|||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Templates/Erubi.html#initialize-instance_method" title="Hyde::Templates::Erubi#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Templates::Erubi</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/MultipartParser.html#initialize-instance_method" title="Hyde::Util::MultipartParser#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Util::MultipartParser</small>
|
||||
|
@ -516,7 +572,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Pattern.html#initialize-instance_method" title="Hyde::Pattern#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Pattern</small>
|
||||
|
@ -524,7 +580,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Handlers/Serve.html#initialize-instance_method" title="Hyde::Handlers::Serve#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::Handlers::Serve</small>
|
||||
|
@ -532,7 +588,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/PatternMatching/Glob.html#initialize-instance_method" title="Hyde::PatternMatching::Glob#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::PatternMatching::Glob</small>
|
||||
|
@ -540,7 +596,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/PatternMatching/ReMatch.html#initialize-instance_method" title="Hyde::PatternMatching::ReMatch#initialize (method)">#initialize</a></span>
|
||||
<small>Hyde::PatternMatching::ReMatch</small>
|
||||
|
@ -548,7 +604,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#input-instance_method" title="Hyde::Request#input (method)">#input</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -556,6 +612,14 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Cookie.html#key-instance_method" title="Hyde::Cookie#key (method)">#key</a></span>
|
||||
<small>Hyde::Cookie</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Template.html#local_variable_get-instance_method" title="Hyde::Template#local_variable_get (method)">#local_variable_get</a></span>
|
||||
|
@ -669,6 +733,14 @@
|
|||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Cookie.html#params-instance_method" title="Hyde::Cookie#params (method)">#params</a></span>
|
||||
<small>Hyde::Cookie</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/Lookup.html#parent-instance_method" title="Hyde::Util::Lookup#parent (method)">#parent</a></span>
|
||||
<small>Hyde::Util::Lookup</small>
|
||||
|
@ -676,7 +748,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/Query.html#parse-instance_method" title="Hyde::Util::Query#parse (method)">#parse</a></span>
|
||||
<small>Hyde::Util::Query</small>
|
||||
|
@ -684,7 +756,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/MultipartParser.html#parse-instance_method" title="Hyde::Util::MultipartParser#parse (method)">#parse</a></span>
|
||||
<small>Hyde::Util::MultipartParser</small>
|
||||
|
@ -692,7 +764,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/Query.html#parse_shallow-instance_method" title="Hyde::Util::Query#parse_shallow (method)">#parse_shallow</a></span>
|
||||
<small>Hyde::Util::Query</small>
|
||||
|
@ -700,7 +772,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util.html#parse_value-class_method" title="Hyde::Util.parse_value (method)">parse_value</a></span>
|
||||
<small>Hyde::Util</small>
|
||||
|
@ -708,7 +780,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathConstructors.html#patch-instance_method" title="Hyde::DSL::PathConstructors#patch (method)">#patch</a></span>
|
||||
<small>Hyde::DSL::PathConstructors</small>
|
||||
|
@ -716,7 +788,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#path-instance_method" title="Hyde::Request#path (method)">#path</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -724,7 +796,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathConstructors.html#path-instance_method" title="Hyde::DSL::PathConstructors#path (method)">#path</a></span>
|
||||
<small>Hyde::DSL::PathConstructors</small>
|
||||
|
@ -732,7 +804,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#path_info-instance_method" title="Hyde::Request#path_info (method)">#path_info</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -740,6 +812,14 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathMethods.html#plugin-instance_method" title="Hyde::DSL::PathMethods#plugin (method)">#plugin</a></span>
|
||||
<small>Hyde::DSL::PathMethods</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#pop_state-instance_method" title="Hyde::Request#pop_state (method)">#pop_state</a></span>
|
||||
|
@ -1005,6 +1085,14 @@
|
|||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Templates/Erubi.html#run-instance_method" title="Hyde::Templates::Erubi#run (method)">#run</a></span>
|
||||
<small>Hyde::Templates::Erubi</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#run_postprocessors-instance_method" title="Hyde::Request#run_postprocessors (method)">#run_postprocessors</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -1012,7 +1100,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#script_name-instance_method" title="Hyde::Request#script_name (method)">#script_name</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -1020,7 +1108,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathConstructors.html#serve-instance_method" title="Hyde::DSL::PathConstructors#serve (method)">#serve</a></span>
|
||||
<small>Hyde::DSL::PathConstructors</small>
|
||||
|
@ -1028,7 +1116,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#server_name-instance_method" title="Hyde::Request#server_name (method)">#server_name</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -1036,7 +1124,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#server_port-instance_method" title="Hyde::Request#server_port (method)">#server_port</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -1044,7 +1132,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#server_protocol-instance_method" title="Hyde::Request#server_protocol (method)">#server_protocol</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -1052,7 +1140,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/FormPart.html#simplify-instance_method" title="Hyde::Util::FormPart#simplify (method)">#simplify</a></span>
|
||||
<small>Hyde::Util::FormPart</small>
|
||||
|
@ -1060,7 +1148,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Request.html#splat-instance_method" title="Hyde::Request#splat (method)">#splat</a></span>
|
||||
<small>Hyde::Request</small>
|
||||
|
@ -1068,7 +1156,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Pattern.html#static%3F-instance_method" title="Hyde::Pattern#static? (method)">#static?</a></span>
|
||||
<small>Hyde::Pattern</small>
|
||||
|
@ -1076,7 +1164,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Response.html#status-instance_method" title="Hyde::Response#status (method)">#status</a></span>
|
||||
<small>Hyde::Response</small>
|
||||
|
@ -1084,7 +1172,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/ProbeMethods.html#status-instance_method" title="Hyde::DSL::ProbeMethods#status (method)">#status</a></span>
|
||||
<small>Hyde::DSL::ProbeMethods</small>
|
||||
|
@ -1092,7 +1180,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/FormPart.html#tempfile=-instance_method" title="Hyde::Util::FormPart#tempfile= (method)">#tempfile=</a></span>
|
||||
<small>Hyde::Util::FormPart</small>
|
||||
|
@ -1100,7 +1188,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util/MultipartParser.html#to_h-instance_method" title="Hyde::Util::MultipartParser#to_h (method)">#to_h</a></span>
|
||||
<small>Hyde::Util::MultipartParser</small>
|
||||
|
@ -1108,7 +1196,23 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Cookie.html#to_s-instance_method" title="Hyde::Cookie#to_s (method)">#to_s</a></span>
|
||||
<small>Hyde::Cookie</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Cookie.html#to_short-instance_method" title="Hyde::Cookie#to_short (method)">#to_short</a></span>
|
||||
<small>Hyde::Cookie</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/DSL/PathConstructors.html#trace-instance_method" title="Hyde::DSL::PathConstructors#trace (method)">#trace</a></span>
|
||||
<small>Hyde::DSL::PathConstructors</small>
|
||||
|
@ -1116,7 +1220,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="odd ">
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Util.html#unescape_html-class_method" title="Hyde::Util.unescape_html (method)">unescape_html</a></span>
|
||||
<small>Hyde::Util</small>
|
||||
|
@ -1124,7 +1228,7 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<li class="odd ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Response.html#validate-instance_method" title="Hyde::Response#validate (method)">#validate</a></span>
|
||||
<small>Hyde::Response</small>
|
||||
|
@ -1132,6 +1236,14 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="even ">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="Hyde/Cookie.html#value-instance_method" title="Hyde::Cookie#value (method)">#value</a></span>
|
||||
<small>Hyde::Cookie</small>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Sep 13 02:08:01 2023 by
|
||||
Generated on Sat Sep 16 18:32:12 2023 by
|
||||
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
||||
0.9.34 (ruby-3.0.6).
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue