docs/code/Utopia.html in utopia-2.5.5 vs docs/code/Utopia.html in utopia-2.6.0
- old
+ new
@@ -1,94 +1,94 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>
- Module: Utopia
-
- — Documentation by YARD 0.9.12
-
-</title>
-
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
-
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
-
-<script type="text/javascript" charset="utf-8">
- pathId = "Utopia";
- 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 (U)</a> »
-
-
- <span class="title">Utopia</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>Module: Utopia
-
-
-
-</h1>
-<div class="box_info">
-
-
-
-
-
-
-
-
-
-
-
- <dl>
- <dt>Defined in:</dt>
- <dd>lib/utopia.rb<span class="defines">,<br />
- lib/utopia/http.rb,<br /> lib/utopia/path.rb,<br /> lib/utopia/setup.rb,<br /> lib/utopia/locale.rb,<br /> lib/utopia/logger.rb,<br /> lib/utopia/static.rb,<br /> lib/utopia/command.rb,<br /> lib/utopia/content.rb,<br /> lib/utopia/session.rb,<br /> lib/utopia/version.rb,<br /> lib/utopia/controller.rb,<br /> lib/utopia/exceptions.rb,<br /> lib/utopia/middleware.rb,<br /> lib/utopia/redirection.rb,<br /> lib/utopia/command/site.rb,<br /> lib/utopia/content/link.rb,<br /> lib/utopia/content/node.rb,<br /> lib/utopia/content/tags.rb,<br /> lib/utopia/localization.rb,<br /> lib/utopia/path/matcher.rb,<br /> lib/utopia/content/links.rb,<br /> lib/utopia/command/server.rb,<br /> lib/utopia/content/markup.rb,<br /> lib/utopia/content_length.rb,<br /> lib/utopia/controller/base.rb,<br /> lib/utopia/content/document.rb,<br /> lib/utopia/content/response.rb,<br /> lib/utopia/content/namespace.rb,<br /> lib/utopia/exceptions/mailer.rb,<br /> lib/utopia/session/lazy_hash.rb,<br /> lib/utopia/static/local_file.rb,<br /> lib/utopia/static/mime_types.rb,<br /> lib/utopia/controller/actions.rb,<br /> lib/utopia/controller/respond.rb,<br /> lib/utopia/controller/rewrite.rb,<br /> lib/utopia/exceptions/handler.rb,<br /> lib/utopia/command/environment.rb,<br /> lib/utopia/controller/variables.rb,<br /> lib/utopia/extensions/array_split.rb,<br /> lib/utopia/logger/compact_formatter.rb,<br /> lib/utopia/extensions/date_comparisons.rb</span>
-</dd>
- </dl>
-
-</div>
-
-<h2>Overview</h2><div class="docstring">
- <div class="discussion">
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>
+ Module: Utopia
+
+ — Documentation by YARD 0.9.18
+
+</title>
+
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
+
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ pathId = "Utopia";
+ 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 (U)</a> »
+
+
+ <span class="title">Utopia</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>Module: Utopia
+
+
+
+</h1>
+<div class="box_info">
+
+
+
+
+
+
+
+
+
+
+
+ <dl>
+ <dt>Defined in:</dt>
+ <dd>lib/utopia.rb<span class="defines">,<br />
+ lib/utopia/http.rb,<br /> lib/utopia/path.rb,<br /> lib/utopia/setup.rb,<br /> lib/utopia/locale.rb,<br /> lib/utopia/logger.rb,<br /> lib/utopia/static.rb,<br /> lib/utopia/command.rb,<br /> lib/utopia/content.rb,<br /> lib/utopia/session.rb,<br /> lib/utopia/version.rb,<br /> lib/utopia/controller.rb,<br /> lib/utopia/exceptions.rb,<br /> lib/utopia/middleware.rb,<br /> lib/utopia/redirection.rb,<br /> lib/utopia/command/site.rb,<br /> lib/utopia/content/link.rb,<br /> lib/utopia/content/node.rb,<br /> lib/utopia/content/tags.rb,<br /> lib/utopia/localization.rb,<br /> lib/utopia/path/matcher.rb,<br /> lib/utopia/content/links.rb,<br /> lib/utopia/command/server.rb,<br /> lib/utopia/content/markup.rb,<br /> lib/utopia/content_length.rb,<br /> lib/utopia/controller/base.rb,<br /> lib/utopia/content/document.rb,<br /> lib/utopia/content/response.rb,<br /> lib/utopia/content/namespace.rb,<br /> lib/utopia/exceptions/mailer.rb,<br /> lib/utopia/session/lazy_hash.rb,<br /> lib/utopia/static/local_file.rb,<br /> lib/utopia/static/mime_types.rb,<br /> lib/utopia/controller/actions.rb,<br /> lib/utopia/controller/respond.rb,<br /> lib/utopia/controller/rewrite.rb,<br /> lib/utopia/exceptions/handler.rb,<br /> lib/utopia/command/environment.rb,<br /> lib/utopia/controller/variables.rb,<br /> lib/utopia/extensions/array_split.rb,<br /> lib/utopia/logger/compact_formatter.rb,<br /> lib/utopia/extensions/date_comparisons.rb</span>
+</dd>
+ </dl>
+
+</div>
+
+<h2>Overview</h2><div class="docstring">
+ <div class="discussion">
<p>Copyright, 2012, by Samuel G. D. Williams. <a href="http://www.codeotaku.com">http://www.codeotaku.com</a></p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
@@ -104,408 +104,414 @@
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-
-</div><h2>Defined Under Namespace</h2>
-<p class="children">
-
-
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Utopia/Command.html" title="Utopia::Command (module)">Command</a></span>, <span class='object_link'><a href="Utopia/Controllers.html" title="Utopia::Controllers (module)">Controllers</a></span>, <span class='object_link'><a href="Utopia/Exceptions.html" title="Utopia::Exceptions (module)">Exceptions</a></span>, <span class='object_link'><a href="Utopia/Extensions.html" title="Utopia::Extensions (module)">Extensions</a></span>, <span class='object_link'><a href="Utopia/HTTP.html" title="Utopia::HTTP (module)">HTTP</a></span>, <span class='object_link'><a href="Utopia/Logger.html" title="Utopia::Logger (module)">Logger</a></span>, <span class='object_link'><a href="Utopia/Redirection.html" title="Utopia::Redirection (module)">Redirection</a></span>
-
-
-
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Utopia/Content.html" title="Utopia::Content (class)">Content</a></span>, <span class='object_link'><a href="Utopia/ContentLength.html" title="Utopia::ContentLength (class)">ContentLength</a></span>, <span class='object_link'><a href="Utopia/Controller.html" title="Utopia::Controller (class)">Controller</a></span>, <span class='object_link'><a href="Utopia/Locale.html" title="Utopia::Locale (class)">Locale</a></span>, <span class='object_link'><a href="Utopia/Localization.html" title="Utopia::Localization (class)">Localization</a></span>, <span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span>, <span class='object_link'><a href="Utopia/Session.html" title="Utopia::Session (class)">Session</a></span>, <span class='object_link'><a href="Utopia/Setup.html" title="Utopia::Setup (class)">Setup</a></span>, <span class='object_link'><a href="Utopia/Static.html" title="Utopia::Static (class)">Static</a></span>
-
-
-</p>
-
- <h2>Constant Summary</h2>
- <dl class="constants">
-
- <dt id="VERSION-constant" class="">VERSION =
-
- </dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>2.3.0</span><span class='tstring_end'>"</span></span></pre></dd>
-
- <dt id="PAGES_PATH-constant" class="">PAGES_PATH =
- <div class="docstring">
- <div class="discussion">
+
+
+ </div>
+</div>
+<div class="tags">
+
+
+</div><h2>Defined Under Namespace</h2>
+<p class="children">
+
+
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Utopia/Command.html" title="Utopia::Command (module)">Command</a></span>, <span class='object_link'><a href="Utopia/Controllers.html" title="Utopia::Controllers (module)">Controllers</a></span>, <span class='object_link'><a href="Utopia/Exceptions.html" title="Utopia::Exceptions (module)">Exceptions</a></span>, <span class='object_link'><a href="Utopia/Extensions.html" title="Utopia::Extensions (module)">Extensions</a></span>, <span class='object_link'><a href="Utopia/HTTP.html" title="Utopia::HTTP (module)">HTTP</a></span>, <span class='object_link'><a href="Utopia/Logger.html" title="Utopia::Logger (module)">Logger</a></span>, <span class='object_link'><a href="Utopia/Redirection.html" title="Utopia::Redirection (module)">Redirection</a></span>
+
+
+
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Utopia/Content.html" title="Utopia::Content (class)">Content</a></span>, <span class='object_link'><a href="Utopia/ContentLength.html" title="Utopia::ContentLength (class)">ContentLength</a></span>, <span class='object_link'><a href="Utopia/Controller.html" title="Utopia::Controller (class)">Controller</a></span>, <span class='object_link'><a href="Utopia/Locale.html" title="Utopia::Locale (class)">Locale</a></span>, <span class='object_link'><a href="Utopia/Localization.html" title="Utopia::Localization (class)">Localization</a></span>, <span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span>, <span class='object_link'><a href="Utopia/Session.html" title="Utopia::Session (class)">Session</a></span>, <span class='object_link'><a href="Utopia/Setup.html" title="Utopia::Setup (class)">Setup</a></span>, <span class='object_link'><a href="Utopia/Static.html" title="Utopia::Static (class)">Static</a></span>
+
+
+</p>
+
+
+ <h2>
+ Constant Summary
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
+ </h2>
+
+ <dl class="constants">
+
+ <dt id="VERSION-constant" class="">VERSION =
+
+ </dt>
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>2.6.0</span><span class='tstring_end'>"</span></span></pre></dd>
+
+ <dt id="PAGES_PATH-constant" class="">PAGES_PATH =
+ <div class="docstring">
+ <div class="discussion">
<p>The default pages path for <span class='object_link'><a href="Utopia/Content.html" title="Utopia::Content (class)">Content</a></span> middleware.</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-
-</div>
- </dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pages</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
-
- <dt id="VARIABLES_KEY-constant" class="">VARIABLES_KEY =
- <div class="docstring">
- <div class="discussion">
+
+
+ </div>
+</div>
+<div class="tags">
+
+
+</div>
+ </dt>
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pages</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
+
+ <dt id="VARIABLES_KEY-constant" class="">VARIABLES_KEY =
+ <div class="docstring">
+ <div class="discussion">
<p>This is used for shared controller variables which get consumed by the content middleware.</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-
-</div>
- </dt>
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>utopia.variables</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
-
- </dl>
-
-
-
-
-
-
-
-
- <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="#default_path-class_method" title="default_path (class method)">.<strong>default_path</strong>(*args) ⇒ Path </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
+
+
+ </div>
+</div>
+<div class="tags">
+
+
+</div>
+ </dt>
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>utopia.variables</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
+
+ </dl>
+
+
+
+
+
+
+
+
+
+ <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="#default_path-class_method" title="default_path (class method)">.<strong>default_path</strong>(*args) ⇒ Path </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
<span class="summary_desc"><div class='inline'><p>The same as <span class='object_link'><a href="#default_root-class_method" title="Utopia.default_root (method)">Utopia.default_root</a></span> but returns an instance of <span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span>.</p>
-</div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#default_root-class_method" title="default_root (class method)">.<strong>default_root</strong>(subdirectory = PAGES_PATH, pwd = Dir.pwd) ⇒ Object </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#default_root-class_method" title="default_root (class method)">.<strong>default_root</strong>(subdirectory = PAGES_PATH, pwd = Dir.pwd) ⇒ Object </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
<span class="summary_desc"><div class='inline'><p>The default root directory for middleware to operate within, e.g.</p>
-</div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#Path-class_method" title="Path (class method)">.<strong>Path</strong>(path) ⇒ Object </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#Path-class_method" title="Path (class method)">.<strong>Path</strong>(path) ⇒ Object </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
<span class="summary_desc"><div class='inline'>
-</div></span>
-
-</li>
-
-
- <li class="public ">
- <span class="summary_signature">
-
- <a href="#setup-class_method" title="setup (class method)">.<strong>setup</strong>(config_root = nil, **options) ⇒ Object </a>
-
-
-
- </span>
-
-
-
-
-
-
-
-
-
+</div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#setup-class_method" title="setup (class method)">.<strong>setup</strong>(config_root = nil, **options) ⇒ Object </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+
<span class="summary_desc"><div class='inline'><p>The main entry point for <code>config/environment.rb</code> for setting up the site.</p>
-</div></span>
-
-</li>
-
-
- </ul>
-
-
-
-
- <div id="class_method_details" class="method_details_list">
- <h2>Class Method Details</h2>
-
-
- <div class="method_details first">
- <h3 class="signature first" id="default_path-class_method">
-
- .<strong>default_path</strong>(*args) ⇒ <tt><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></tt>
-
-
-
-
-
-</h3><div class="docstring">
- <div class="discussion">
+</div></span>
+
+</li>
+
+
+ </ul>
+
+
+
+
+ <div id="class_method_details" class="method_details_list">
+ <h2>Class Method Details</h2>
+
+
+ <div class="method_details first">
+ <h3 class="signature first" id="default_path-class_method">
+
+ .<strong>default_path</strong>(*args) ⇒ <tt><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></tt>
+
+
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
<p>The same as <span class='object_link'><a href="#default_root-class_method" title="Utopia.default_root (method)">default_root</a></span> but returns an instance of <span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span>.</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-<p class="tag_title">Returns:</p>
-<ul class="return">
-
- <li>
-
-
- <span class='type'>(<tt><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></tt>)</span>
-
-
-
- —
+
+
+ </div>
+</div>
+<div class="tags">
+
+<p class="tag_title">Returns:</p>
+<ul class="return">
+
+ <li>
+
+
+ <span class='type'>(<tt><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></tt>)</span>
+
+
+
+ —
<div class='inline'><p>The path as requested.</p>
-</div>
-
- </li>
-
-</ul>
-
-</div><table class="source_code">
- <tr>
- <td>
+</div>
+
+ </li>
+
+</ul>
+
+</div><table class="source_code">
+ <tr>
+ <td>
<pre class="lines">
42
43
-44</pre>
- </td>
- <td>
+44</pre>
+ </td>
+ <td>
<pre class="code"><span class="info file"># File 'lib/utopia/middleware.rb', line 42</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_path'>default_path</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
<span class='const'><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_default_root'>default_root</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span><span class='rbracket'>]</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <h3 class="signature " id="default_root-class_method">
-
- .<strong>default_root</strong>(subdirectory = PAGES_PATH, pwd = Dir.pwd) ⇒ <tt>Object</tt>
-
-
-
-
-
-</h3><div class="docstring">
- <div class="discussion">
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <h3 class="signature " id="default_root-class_method">
+
+ .<strong>default_root</strong>(subdirectory = PAGES_PATH, pwd = Dir.pwd) ⇒ <tt>Object</tt>
+
+
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
<p>The default root directory for middleware to operate within, e.g. the web-site directory. Convention over configuration.</p>
-
-
- </div>
-</div>
-<div class="tags">
- <p class="tag_title">Parameters:</p>
-<ul class="param">
-
- <li>
-
- <span class='name'>subdirectory</span>
-
-
- <span class='type'>(<tt>String</tt>)</span>
-
-
- <em class="default">(defaults to: <tt>PAGES_PATH</tt>)</em>
-
-
- —
+
+
+ </div>
+</div>
+<div class="tags">
+ <p class="tag_title">Parameters:</p>
+<ul class="param">
+
+ <li>
+
+ <span class='name'>subdirectory</span>
+
+
+ <span class='type'>(<tt>String</tt>)</span>
+
+
+ <em class="default">(defaults to: <tt>PAGES_PATH</tt>)</em>
+
+
+ —
<div class='inline'><p>Appended to the default root to make a more specific path.</p>
-</div>
-
- </li>
-
- <li>
-
- <span class='name'>pwd</span>
-
-
- <span class='type'>(<tt>String</tt>)</span>
-
-
- <em class="default">(defaults to: <tt>Dir.pwd</tt>)</em>
-
-
- —
+</div>
+
+ </li>
+
+ <li>
+
+ <span class='name'>pwd</span>
+
+
+ <span class='type'>(<tt>String</tt>)</span>
+
+
+ <em class="default">(defaults to: <tt>Dir.pwd</tt>)</em>
+
+
+ —
<div class='inline'><p>The working directory for the current site.</p>
-</div>
-
- </li>
-
-</ul>
-
-
-</div><table class="source_code">
- <tr>
- <td>
+</div>
+
+ </li>
+
+</ul>
+
+
+</div><table class="source_code">
+ <tr>
+ <td>
<pre class="lines">
36
37
-38</pre>
- </td>
- <td>
+38</pre>
+ </td>
+ <td>
<pre class="code"><span class="info file"># File 'lib/utopia/middleware.rb', line 36</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_default_root'>default_root</span><span class='lparen'>(</span><span class='id identifier rubyid_subdirectory'>subdirectory</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#PAGES_PATH-constant" title="Utopia::PAGES_PATH (constant)">PAGES_PATH</a></span></span><span class='comma'>,</span> <span class='id identifier rubyid_pwd'>pwd</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</span><span class='rparen'>)</span>
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='id identifier rubyid_subdirectory'>subdirectory</span><span class='comma'>,</span> <span class='id identifier rubyid_pwd'>pwd</span><span class='rparen'>)</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <h3 class="signature " id="Path-class_method">
-
- .<strong>Path</strong>(path) ⇒ <tt>Object</tt>
-
-
-
-
-
-</h3><table class="source_code">
- <tr>
- <td>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <h3 class="signature " id="Path-class_method">
+
+ .<strong>Path</strong>(path) ⇒ <tt>Object</tt>
+
+
+
+
+
+</h3><table class="source_code">
+ <tr>
+ <td>
<pre class="lines">
377
378
-379</pre>
- </td>
- <td>
+379</pre>
+ </td>
+ <td>
<pre class="code"><span class="info file"># File 'lib/utopia/path.rb', line 377</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='const'>Path</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
<span class='const'><span class='object_link'><a href="Utopia/Path.html" title="Utopia::Path (class)">Path</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create'><span class='object_link'><a href="Utopia/Path.html#create-class_method" title="Utopia::Path.create (method)">create</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- <div class="method_details ">
- <h3 class="signature " id="setup-class_method">
-
- .<strong>setup</strong>(config_root = nil, **options) ⇒ <tt>Object</tt>
-
-
-
-
-
-</h3><div class="docstring">
- <div class="discussion">
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <h3 class="signature " id="setup-class_method">
+
+ .<strong>setup</strong>(config_root = nil, **options) ⇒ <tt>Object</tt>
+
+
+
+
+
+</h3><div class="docstring">
+ <div class="discussion">
<p>The main entry point for <code>config/environment.rb</code> for setting up the site.</p>
-
-
- </div>
-</div>
-<div class="tags">
-
-
-</div><table class="source_code">
- <tr>
- <td>
+
+
+ </div>
+</div>
+<div class="tags">
+
+
+</div><table class="source_code">
+ <tr>
+ <td>
<pre class="lines">
103
104
105
106
107
108
109
-110</pre>
- </td>
- <td>
+110</pre>
+ </td>
+ <td>
<pre class="code"><span class="info file"># File 'lib/utopia/setup.rb', line 103</span>
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_setup'>setup</span><span class='lparen'>(</span><span class='id identifier rubyid_config_root'>config_root</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
<span class='comment'># We extract the directory of the caller to get the path to $root/config
</span> <span class='kw'>if</span> <span class='id identifier rubyid_config_root'>config_root</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
<span class='id identifier rubyid_config_root'>config_root</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_caller'>caller</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span>
<span class='kw'>end</span>
<span class='const'><span class='object_link'><a href="Utopia/Setup.html" title="Utopia::Setup (class)">Setup</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Utopia/Setup.html#initialize-instance_method" title="Utopia::Setup#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_config_root'>config_root</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:apply</span><span class='rparen'>)</span>
-<span class='kw'>end</span></pre>
- </td>
- </tr>
-</table>
-</div>
-
- </div>
-
-</div>
-
- <div id="footer">
- Generated on Sat Mar 24 21:17:19 2018 by
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
- 0.9.12 (ruby-2.5.0).
-</div>
-
- </div>
- </body>
+<span class='kw'>end</span></pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+</div>
+
+ <div id="footer">
+ Generated on Sat Mar 9 12:01:52 2019 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.9.18 (ruby-2.6.1).
+</div>
+
+ </div>
+ </body>
</html>
\ No newline at end of file