<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> Class: Array — 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 = "Array"; 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 (A)</a> » <span class="title">Array</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: Array </h1> <div class="box_info"> <dl> <dt>Inherits:</dt> <dd> <span class="inheritName"><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></span> <ul class="fullTree"> <li><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></li> <li class="next">Array</li> </ul> <a href="#" class="inheritanceTree">show all</a> </dd> </dl> <dl> <dt>Includes:</dt> <dd>ArrayCleanup, ArrayNestedHash, ArrayTags, <span class='object_link'><a href="Doing/ChronifyArray.html" title="Doing::ChronifyArray (module)">Doing::ChronifyArray</a></span></dd> </dl> <dl> <dt>Defined in:</dt> <dd>lib/doing/good.rb<span class="defines">,<br /> lib/doing/array/array.rb,<br /> lib/doing/chronify/chronify.rb</span> </dd> </dl> </div> <h2>Overview</h2><div class="docstring"> <div class="discussion"> <p>Array helpers</p> </div> </div> <div class="tags"> </div><div id="subclasses"> <h2>Direct Known Subclasses</h2> <p class="children"><span class='object_link'><a href="Doing/Items.html" title="Doing::Items (class)">Doing::Items</a></span>, <span class='object_link'><a href="Doing/Note.html" title="Doing::Note (class)">Doing::Note</a></span></p> </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="#cap_first-instance_method" title="#cap_first (instance method)">#<strong>cap_first</strong> ⇒ Array </a> </span> <span class="summary_desc"><div class='inline'><p>Capitalize first letter of each element.</p> </div></span> </li> <li class="public "> <span class="summary_signature"> <a href="#good%3F-instance_method" title="#good? (instance method)">#<strong>good?</strong> ⇒ Boolean </a> </span> <span class="summary_desc"><div class='inline'><p>Tests if object is nil or empty.</p> </div></span> </li> <li class="public "> <span class="summary_signature"> <a href="#utf8-instance_method" title="#utf8 (instance method)">#<strong>utf8</strong> ⇒ Array </a> </span> <span class="summary_desc"><div class='inline'><p>Force UTF-8 encoding of strings in array.</p> </div></span> </li> </ul> <h3 class="inherited">Methods included from <span class='object_link'><a href="Doing/ChronifyArray.html" title="Doing::ChronifyArray (module)">Doing::ChronifyArray</a></span></h3> <p class="inherited"><span class='object_link'><a href="Doing/ChronifyArray.html#time_string-instance_method" title="Doing::ChronifyArray#time_string (method)">#time_string</a></span>, <span class='object_link'><a href="Doing/ChronifyArray.html#to_abbr-instance_method" title="Doing::ChronifyArray#to_abbr (method)">#to_abbr</a></span>, <span class='object_link'><a href="Doing/ChronifyArray.html#to_natural-instance_method" title="Doing::ChronifyArray#to_natural (method)">#to_natural</a></span>, <span class='object_link'><a href="Doing/ChronifyArray.html#to_years-instance_method" title="Doing::ChronifyArray#to_years (method)">#to_years</a></span></p> <div id="instance_method_details" class="method_details_list"> <h2>Instance Method Details</h2> <div class="method_details first"> <h3 class="signature first" id="cap_first-instance_method"> #<strong>cap_first</strong> ⇒ <tt><span class='object_link'><a href="" title="Array (class)">Array</a></span></tt> </h3><div class="docstring"> <div class="discussion"> <p>Capitalize first letter of each element</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="" title="Array (class)">Array</a></span></tt>)</span> — <div class='inline'><p>capitalized items</p> </div> </li> </ul> </div> </div> <div class="method_details "> <h3 class="signature " id="good?-instance_method"> #<strong>good?</strong> ⇒ <tt>Boolean</tt> </h3><div class="docstring"> <div class="discussion"> <p>Tests if object is nil or empty</p> </div> </div> <div class="tags"> <p class="tag_title">Returns:</p> <ul class="return"> <li> <span class='type'>(<tt>Boolean</tt>)</span> — <div class='inline'><p>true if object is defined and has content</p> </div> </li> </ul> </div> </div> <div class="method_details "> <h3 class="signature " id="utf8-instance_method"> #<strong>utf8</strong> ⇒ <tt><span class='object_link'><a href="" title="Array (class)">Array</a></span></tt> </h3><div class="docstring"> <div class="discussion"> <p>Force UTF-8 encoding of strings in array</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="" title="Array (class)">Array</a></span></tt>)</span> — <div class='inline'><p>Encoded lines</p> </div> </li> </ul> </div> </div> </div> </div> <div id="footer"> Generated on Sat Jul 1 12:43:13 2023 by <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> 0.9.34 (ruby-3.2.0). </div> </div> </body> </html>