nutritional_calculator 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/NutritionalCalculator.html +423 -0
- data/docs/NutritionalCalculator/Food.html +912 -0
- data/docs/NutritionalCalculator/FoodGroup.html +498 -0
- data/docs/NutritionalCalculator/LinkedList.html +1312 -0
- data/docs/NutritionalCalculator/LinkedList/Node.html +409 -0
- data/docs/_index.html +151 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +492 -0
- data/docs/file.README.html +138 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +138 -0
- data/docs/js/app.js +248 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +275 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/files/food_database.config +22 -0
- data/lib/files/glycemic_index.config +8 -0
- data/lib/files/nutritional_file.txt +5 -0
- data/lib/files/nutritional_group.config +22 -0
- data/lib/nutritional_calculator.rb +55 -0
- data/lib/nutritional_calculator/food.rb +99 -0
- data/lib/nutritional_calculator/foodgroup.rb +32 -0
- data/lib/nutritional_calculator/linkedlist.rb +194 -0
- data/lib/nutritional_calculator/plate.rb +294 -0
- data/lib/nutritional_calculator/sort_methods.rb +34 -0
- data/lib/nutritional_calculator/version.rb +4 -0
- data/nutritional_calculator.gemspec +40 -0
- metadata +186 -0
| @@ -0,0 +1,498 @@ | |
| 1 | 
            +
            <!DOCTYPE html>
         | 
| 2 | 
            +
            <html>
         | 
| 3 | 
            +
              <head>
         | 
| 4 | 
            +
                <meta charset="utf-8">
         | 
| 5 | 
            +
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
         | 
| 6 | 
            +
            <title>
         | 
| 7 | 
            +
              Class: NutritionalCalculator::FoodGroup
         | 
| 8 | 
            +
              
         | 
| 9 | 
            +
                — Documentation by YARD 0.9.9
         | 
| 10 | 
            +
              
         | 
| 11 | 
            +
            </title>
         | 
| 12 | 
            +
             | 
| 13 | 
            +
              <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
         | 
| 14 | 
            +
             | 
| 15 | 
            +
              <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            <script type="text/javascript" charset="utf-8">
         | 
| 18 | 
            +
              pathId = "NutritionalCalculator::FoodGroup";
         | 
| 19 | 
            +
              relpath = '../';
         | 
| 20 | 
            +
            </script>
         | 
| 21 | 
            +
             | 
| 22 | 
            +
             | 
| 23 | 
            +
              <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
         | 
| 24 | 
            +
             | 
| 25 | 
            +
              <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
         | 
| 26 | 
            +
             | 
| 27 | 
            +
             | 
| 28 | 
            +
              </head>
         | 
| 29 | 
            +
              <body>
         | 
| 30 | 
            +
                <div class="nav_wrap">
         | 
| 31 | 
            +
                  <iframe id="nav" src="../class_list.html?1"></iframe>
         | 
| 32 | 
            +
                  <div id="resizer"></div>
         | 
| 33 | 
            +
                </div>
         | 
| 34 | 
            +
             | 
| 35 | 
            +
                <div id="main" tabindex="-1">
         | 
| 36 | 
            +
                  <div id="header">
         | 
| 37 | 
            +
                    <div id="menu">
         | 
| 38 | 
            +
              
         | 
| 39 | 
            +
                <a href="../_index.html">Index (F)</a> »
         | 
| 40 | 
            +
                <span class='title'><span class='object_link'><a href="../NutritionalCalculator.html" title="NutritionalCalculator (module)">NutritionalCalculator</a></span></span>
         | 
| 41 | 
            +
                 » 
         | 
| 42 | 
            +
                <span class="title">FoodGroup</span>
         | 
| 43 | 
            +
              
         | 
| 44 | 
            +
            </div>
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                    <div id="search">
         | 
| 47 | 
            +
              
         | 
| 48 | 
            +
                <a class="full_list_link" id="class_list_link"
         | 
| 49 | 
            +
                    href="../class_list.html">
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                    <svg width="24" height="24">
         | 
| 52 | 
            +
                      <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
         | 
| 53 | 
            +
                      <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
         | 
| 54 | 
            +
                      <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
         | 
| 55 | 
            +
                    </svg>
         | 
| 56 | 
            +
                </a>
         | 
| 57 | 
            +
              
         | 
| 58 | 
            +
            </div>
         | 
| 59 | 
            +
                    <div class="clear"></div>
         | 
| 60 | 
            +
                  </div>
         | 
| 61 | 
            +
             | 
| 62 | 
            +
                  <div id="content"><h1>Class: NutritionalCalculator::FoodGroup
         | 
| 63 | 
            +
              
         | 
| 64 | 
            +
              
         | 
| 65 | 
            +
              
         | 
| 66 | 
            +
            </h1>
         | 
| 67 | 
            +
            <div class="box_info">
         | 
| 68 | 
            +
              
         | 
| 69 | 
            +
              <dl>
         | 
| 70 | 
            +
                <dt>Inherits:</dt>
         | 
| 71 | 
            +
                <dd>
         | 
| 72 | 
            +
                  <span class="inheritName"><span class='object_link'><a href="Food.html" title="NutritionalCalculator::Food (class)">Food</a></span></span>
         | 
| 73 | 
            +
                  
         | 
| 74 | 
            +
                    <ul class="fullTree">
         | 
| 75 | 
            +
                      <li>Object</li>
         | 
| 76 | 
            +
                      
         | 
| 77 | 
            +
                        <li class="next"><span class='object_link'><a href="Food.html" title="NutritionalCalculator::Food (class)">Food</a></span></li>
         | 
| 78 | 
            +
                      
         | 
| 79 | 
            +
                        <li class="next">NutritionalCalculator::FoodGroup</li>
         | 
| 80 | 
            +
                      
         | 
| 81 | 
            +
                    </ul>
         | 
| 82 | 
            +
                    <a href="#" class="inheritanceTree">show all</a>
         | 
| 83 | 
            +
                  
         | 
| 84 | 
            +
                </dd>
         | 
| 85 | 
            +
              </dl>
         | 
| 86 | 
            +
              
         | 
| 87 | 
            +
             | 
| 88 | 
            +
              
         | 
| 89 | 
            +
              
         | 
| 90 | 
            +
              
         | 
| 91 | 
            +
              
         | 
| 92 | 
            +
              
         | 
| 93 | 
            +
             | 
| 94 | 
            +
              
         | 
| 95 | 
            +
             | 
| 96 | 
            +
              
         | 
| 97 | 
            +
              <dl>
         | 
| 98 | 
            +
                <dt>Defined in:</dt>
         | 
| 99 | 
            +
                <dd>lib/nutritional_calculator/foodgroup.rb</dd>
         | 
| 100 | 
            +
              </dl>
         | 
| 101 | 
            +
              
         | 
| 102 | 
            +
            </div>
         | 
| 103 | 
            +
             | 
| 104 | 
            +
            <h2>Overview</h2><div class="docstring">
         | 
| 105 | 
            +
              <div class="discussion">
         | 
| 106 | 
            +
                
         | 
| 107 | 
            +
            <p>Clase concreta de un alimento Contiene además el grupo al que pertenece el
         | 
| 108 | 
            +
            alimento.</p>
         | 
| 109 | 
            +
             | 
| 110 | 
            +
             | 
| 111 | 
            +
              </div>
         | 
| 112 | 
            +
            </div>
         | 
| 113 | 
            +
            <div class="tags">
         | 
| 114 | 
            +
              
         | 
| 115 | 
            +
             | 
| 116 | 
            +
            </div>
         | 
| 117 | 
            +
             | 
| 118 | 
            +
             | 
| 119 | 
            +
              <h2>Constant Summary</h2>
         | 
| 120 | 
            +
              
         | 
| 121 | 
            +
              <h3 class="inherited">Constants inherited
         | 
| 122 | 
            +
                 from <span class='object_link'><a href="Food.html" title="NutritionalCalculator::Food (class)">Food</a></span></h3>
         | 
| 123 | 
            +
              <p class="inherited"><span class='object_link'><a href="Food.html#CARBOHYDRATE_VALUE-constant" title="NutritionalCalculator::Food::CARBOHYDRATE_VALUE (constant)">NutritionalCalculator::Food::CARBOHYDRATE_VALUE</a></span>, <span class='object_link'><a href="Food.html#LIPIDS_VALUE-constant" title="NutritionalCalculator::Food::LIPIDS_VALUE (constant)">NutritionalCalculator::Food::LIPIDS_VALUE</a></span>, <span class='object_link'><a href="Food.html#PROTEINS_VALUE-constant" title="NutritionalCalculator::Food::PROTEINS_VALUE (constant)">NutritionalCalculator::Food::PROTEINS_VALUE</a></span></p>
         | 
| 124 | 
            +
             | 
| 125 | 
            +
             | 
| 126 | 
            +
              <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
         | 
| 127 | 
            +
              <ul class="summary">
         | 
| 128 | 
            +
                
         | 
| 129 | 
            +
                  <li class="public ">
         | 
| 130 | 
            +
              <span class="summary_signature">
         | 
| 131 | 
            +
                
         | 
| 132 | 
            +
                  <a href="#group-instance_method" title="#group (instance method)">#<strong>group</strong>  ⇒ Object </a>
         | 
| 133 | 
            +
                
         | 
| 134 | 
            +
             | 
| 135 | 
            +
                
         | 
| 136 | 
            +
              </span>
         | 
| 137 | 
            +
              
         | 
| 138 | 
            +
              
         | 
| 139 | 
            +
              
         | 
| 140 | 
            +
                
         | 
| 141 | 
            +
                  <span class="note title readonly">readonly</span>
         | 
| 142 | 
            +
                
         | 
| 143 | 
            +
                
         | 
| 144 | 
            +
              
         | 
| 145 | 
            +
              
         | 
| 146 | 
            +
              
         | 
| 147 | 
            +
              
         | 
| 148 | 
            +
              
         | 
| 149 | 
            +
             | 
| 150 | 
            +
              
         | 
| 151 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 152 | 
            +
            <p>Returns the value of attribute group.</p>
         | 
| 153 | 
            +
            </div></span>
         | 
| 154 | 
            +
              
         | 
| 155 | 
            +
            </li>
         | 
| 156 | 
            +
             | 
| 157 | 
            +
                
         | 
| 158 | 
            +
              </ul>
         | 
| 159 | 
            +
             | 
| 160 | 
            +
             | 
| 161 | 
            +
             | 
| 162 | 
            +
              
         | 
| 163 | 
            +
              
         | 
| 164 | 
            +
              <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Food.html" title="NutritionalCalculator::Food (class)">Food</a></span></h3>
         | 
| 165 | 
            +
              <p class="inherited"><span class='object_link'><a href="Food.html#carbohydrates-instance_method" title="NutritionalCalculator::Food#carbohydrates (method)">#carbohydrates</a></span>, <span class='object_link'><a href="Food.html#lipids-instance_method" title="NutritionalCalculator::Food#lipids (method)">#lipids</a></span>, <span class='object_link'><a href="Food.html#name-instance_method" title="NutritionalCalculator::Food#name (method)">#name</a></span>, <span class='object_link'><a href="Food.html#proteins-instance_method" title="NutritionalCalculator::Food#proteins (method)">#proteins</a></span></p>
         | 
| 166 | 
            +
             | 
| 167 | 
            +
             | 
| 168 | 
            +
              
         | 
| 169 | 
            +
                <h2>
         | 
| 170 | 
            +
                  Instance Method Summary
         | 
| 171 | 
            +
                  <small><a href="#" class="summary_toggle">collapse</a></small>
         | 
| 172 | 
            +
                </h2>
         | 
| 173 | 
            +
             | 
| 174 | 
            +
                <ul class="summary">
         | 
| 175 | 
            +
                  
         | 
| 176 | 
            +
                    <li class="public ">
         | 
| 177 | 
            +
              <span class="summary_signature">
         | 
| 178 | 
            +
                
         | 
| 179 | 
            +
                  <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, proteins, carbohydrates, lipids, group)  ⇒ FoodGroup </a>
         | 
| 180 | 
            +
                
         | 
| 181 | 
            +
             | 
| 182 | 
            +
                
         | 
| 183 | 
            +
              </span>
         | 
| 184 | 
            +
              
         | 
| 185 | 
            +
              
         | 
| 186 | 
            +
                <span class="note title constructor">constructor</span>
         | 
| 187 | 
            +
              
         | 
| 188 | 
            +
              
         | 
| 189 | 
            +
              
         | 
| 190 | 
            +
              
         | 
| 191 | 
            +
              
         | 
| 192 | 
            +
              
         | 
| 193 | 
            +
             | 
| 194 | 
            +
              
         | 
| 195 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 196 | 
            +
            <p>Constructor.</p>
         | 
| 197 | 
            +
            </div></span>
         | 
| 198 | 
            +
              
         | 
| 199 | 
            +
            </li>
         | 
| 200 | 
            +
             | 
| 201 | 
            +
                  
         | 
| 202 | 
            +
                    <li class="public ">
         | 
| 203 | 
            +
              <span class="summary_signature">
         | 
| 204 | 
            +
                
         | 
| 205 | 
            +
                  <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong>  ⇒ String </a>
         | 
| 206 | 
            +
                
         | 
| 207 | 
            +
             | 
| 208 | 
            +
                
         | 
| 209 | 
            +
              </span>
         | 
| 210 | 
            +
              
         | 
| 211 | 
            +
              
         | 
| 212 | 
            +
              
         | 
| 213 | 
            +
              
         | 
| 214 | 
            +
              
         | 
| 215 | 
            +
              
         | 
| 216 | 
            +
              
         | 
| 217 | 
            +
             | 
| 218 | 
            +
              
         | 
| 219 | 
            +
                <span class="summary_desc"><div class='inline'>
         | 
| 220 | 
            +
            <p>Método que transforma el objeto en un String.</p>
         | 
| 221 | 
            +
            </div></span>
         | 
| 222 | 
            +
              
         | 
| 223 | 
            +
            </li>
         | 
| 224 | 
            +
             | 
| 225 | 
            +
                  
         | 
| 226 | 
            +
                </ul>
         | 
| 227 | 
            +
              
         | 
| 228 | 
            +
             | 
| 229 | 
            +
             | 
| 230 | 
            +
              
         | 
| 231 | 
            +
              
         | 
| 232 | 
            +
              
         | 
| 233 | 
            +
              
         | 
| 234 | 
            +
              
         | 
| 235 | 
            +
              
         | 
| 236 | 
            +
              
         | 
| 237 | 
            +
              
         | 
| 238 | 
            +
              <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Food.html" title="NutritionalCalculator::Food (class)">Food</a></span></h3>
         | 
| 239 | 
            +
              <p class="inherited"><span class='object_link'><a href="Food.html#<=>-instance_method" title="NutritionalCalculator::Food#<=> (method)">#<=></a></span>, <span class='object_link'><a href="Food.html#get_nutritional_value-instance_method" title="NutritionalCalculator::Food#get_nutritional_value (method)">#get_nutritional_value</a></span></p>
         | 
| 240 | 
            +
             | 
| 241 | 
            +
              <div id="constructor_details" class="method_details_list">
         | 
| 242 | 
            +
              <h2>Constructor Details</h2>
         | 
| 243 | 
            +
              
         | 
| 244 | 
            +
                <div class="method_details first">
         | 
| 245 | 
            +
              <h3 class="signature first" id="initialize-instance_method">
         | 
| 246 | 
            +
              
         | 
| 247 | 
            +
                #<strong>initialize</strong>(name, proteins, carbohydrates, lipids, group)  ⇒ <tt><span class='object_link'><a href="" title="NutritionalCalculator::FoodGroup (class)">FoodGroup</a></span></tt> 
         | 
| 248 | 
            +
              
         | 
| 249 | 
            +
             | 
| 250 | 
            +
              
         | 
| 251 | 
            +
             | 
| 252 | 
            +
              
         | 
| 253 | 
            +
            </h3><div class="docstring">
         | 
| 254 | 
            +
              <div class="discussion">
         | 
| 255 | 
            +
                
         | 
| 256 | 
            +
            <p>Constructor.</p>
         | 
| 257 | 
            +
             | 
| 258 | 
            +
             | 
| 259 | 
            +
              </div>
         | 
| 260 | 
            +
            </div>
         | 
| 261 | 
            +
            <div class="tags">
         | 
| 262 | 
            +
              <p class="tag_title">Parameters:</p>
         | 
| 263 | 
            +
            <ul class="param">
         | 
| 264 | 
            +
              
         | 
| 265 | 
            +
                <li>
         | 
| 266 | 
            +
                  
         | 
| 267 | 
            +
                    <span class='name'>name</span>
         | 
| 268 | 
            +
                  
         | 
| 269 | 
            +
                  
         | 
| 270 | 
            +
                    <span class='type'>(<tt>String</tt>)</span>
         | 
| 271 | 
            +
                  
         | 
| 272 | 
            +
                  
         | 
| 273 | 
            +
                  
         | 
| 274 | 
            +
                    —
         | 
| 275 | 
            +
                    <div class='inline'>
         | 
| 276 | 
            +
            <p>Nombre del alimento que queremos representar.</p>
         | 
| 277 | 
            +
            </div>
         | 
| 278 | 
            +
                  
         | 
| 279 | 
            +
                </li>
         | 
| 280 | 
            +
              
         | 
| 281 | 
            +
                <li>
         | 
| 282 | 
            +
                  
         | 
| 283 | 
            +
                    <span class='name'>proteins</span>
         | 
| 284 | 
            +
                  
         | 
| 285 | 
            +
                  
         | 
| 286 | 
            +
                    <span class='type'>(<tt>float</tt>)</span>
         | 
| 287 | 
            +
                  
         | 
| 288 | 
            +
                  
         | 
| 289 | 
            +
                  
         | 
| 290 | 
            +
                    —
         | 
| 291 | 
            +
                    <div class='inline'>
         | 
| 292 | 
            +
            <p>Gramos de proteína que contiene el alimanto.</p>
         | 
| 293 | 
            +
            </div>
         | 
| 294 | 
            +
                  
         | 
| 295 | 
            +
                </li>
         | 
| 296 | 
            +
              
         | 
| 297 | 
            +
                <li>
         | 
| 298 | 
            +
                  
         | 
| 299 | 
            +
                    <span class='name'>carbohydrates</span>
         | 
| 300 | 
            +
                  
         | 
| 301 | 
            +
                  
         | 
| 302 | 
            +
                    <span class='type'>(<tt>float</tt>)</span>
         | 
| 303 | 
            +
                  
         | 
| 304 | 
            +
                  
         | 
| 305 | 
            +
                  
         | 
| 306 | 
            +
                    —
         | 
| 307 | 
            +
                    <div class='inline'>
         | 
| 308 | 
            +
            <p>Gramos de glúcidos que contiene el alimanto.</p>
         | 
| 309 | 
            +
            </div>
         | 
| 310 | 
            +
                  
         | 
| 311 | 
            +
                </li>
         | 
| 312 | 
            +
              
         | 
| 313 | 
            +
                <li>
         | 
| 314 | 
            +
                  
         | 
| 315 | 
            +
                    <span class='name'>lipids</span>
         | 
| 316 | 
            +
                  
         | 
| 317 | 
            +
                  
         | 
| 318 | 
            +
                    <span class='type'>(<tt>float</tt>)</span>
         | 
| 319 | 
            +
                  
         | 
| 320 | 
            +
                  
         | 
| 321 | 
            +
                  
         | 
| 322 | 
            +
                    —
         | 
| 323 | 
            +
                    <div class='inline'>
         | 
| 324 | 
            +
            <p>Gramos de lípidos que contiene el alimanto.</p>
         | 
| 325 | 
            +
            </div>
         | 
| 326 | 
            +
                  
         | 
| 327 | 
            +
                </li>
         | 
| 328 | 
            +
              
         | 
| 329 | 
            +
                <li>
         | 
| 330 | 
            +
                  
         | 
| 331 | 
            +
                    <span class='name'>group</span>
         | 
| 332 | 
            +
                  
         | 
| 333 | 
            +
                  
         | 
| 334 | 
            +
                    <span class='type'>(<tt>String</tt>)</span>
         | 
| 335 | 
            +
                  
         | 
| 336 | 
            +
                  
         | 
| 337 | 
            +
                  
         | 
| 338 | 
            +
                    —
         | 
| 339 | 
            +
                    <div class='inline'>
         | 
| 340 | 
            +
            <p>Nombre del grupo al que pertenece el alimento.</p>
         | 
| 341 | 
            +
            </div>
         | 
| 342 | 
            +
                  
         | 
| 343 | 
            +
                </li>
         | 
| 344 | 
            +
              
         | 
| 345 | 
            +
            </ul>
         | 
| 346 | 
            +
             | 
| 347 | 
            +
             | 
| 348 | 
            +
            </div><table class="source_code">
         | 
| 349 | 
            +
              <tr>
         | 
| 350 | 
            +
                <td>
         | 
| 351 | 
            +
                  <pre class="lines">
         | 
| 352 | 
            +
             | 
| 353 | 
            +
             | 
| 354 | 
            +
            18
         | 
| 355 | 
            +
            19
         | 
| 356 | 
            +
            20
         | 
| 357 | 
            +
            21</pre>
         | 
| 358 | 
            +
                </td>
         | 
| 359 | 
            +
                <td>
         | 
| 360 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/nutritional_calculator/foodgroup.rb', line 18</span>
         | 
| 361 | 
            +
             | 
| 362 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_proteins'>proteins</span><span class='comma'>,</span> <span class='id identifier rubyid_carbohydrates'>carbohydrates</span><span class='comma'>,</span> <span class='id identifier rubyid_lipids'>lipids</span><span class='comma'>,</span> <span class='id identifier rubyid_group'>group</span><span class='rparen'>)</span>
         | 
| 363 | 
            +
              <span class='ivar'>@group</span> <span class='op'>=</span> <span class='id identifier rubyid_group'>group</span>
         | 
| 364 | 
            +
              <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_proteins'>proteins</span><span class='comma'>,</span> <span class='id identifier rubyid_carbohydrates'>carbohydrates</span><span class='comma'>,</span> <span class='id identifier rubyid_lipids'>lipids</span><span class='rparen'>)</span>
         | 
| 365 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 366 | 
            +
                </td>
         | 
| 367 | 
            +
              </tr>
         | 
| 368 | 
            +
            </table>
         | 
| 369 | 
            +
            </div>
         | 
| 370 | 
            +
              
         | 
| 371 | 
            +
            </div>
         | 
| 372 | 
            +
             | 
| 373 | 
            +
              <div id="instance_attr_details" class="attr_details">
         | 
| 374 | 
            +
                <h2>Instance Attribute Details</h2>
         | 
| 375 | 
            +
                
         | 
| 376 | 
            +
                  
         | 
| 377 | 
            +
                  <span id=""></span>
         | 
| 378 | 
            +
                  <div class="method_details first">
         | 
| 379 | 
            +
              <h3 class="signature first" id="group-instance_method">
         | 
| 380 | 
            +
              
         | 
| 381 | 
            +
                #<strong>group</strong>  ⇒ <tt>Object</tt>  <span class="extras">(readonly)</span>
         | 
| 382 | 
            +
              
         | 
| 383 | 
            +
             | 
| 384 | 
            +
              
         | 
| 385 | 
            +
             | 
| 386 | 
            +
              
         | 
| 387 | 
            +
            </h3><div class="docstring">
         | 
| 388 | 
            +
              <div class="discussion">
         | 
| 389 | 
            +
                
         | 
| 390 | 
            +
            <p>Returns the value of attribute group</p>
         | 
| 391 | 
            +
             | 
| 392 | 
            +
             | 
| 393 | 
            +
              </div>
         | 
| 394 | 
            +
            </div>
         | 
| 395 | 
            +
            <div class="tags">
         | 
| 396 | 
            +
              
         | 
| 397 | 
            +
             | 
| 398 | 
            +
            </div><table class="source_code">
         | 
| 399 | 
            +
              <tr>
         | 
| 400 | 
            +
                <td>
         | 
| 401 | 
            +
                  <pre class="lines">
         | 
| 402 | 
            +
             | 
| 403 | 
            +
             | 
| 404 | 
            +
            9
         | 
| 405 | 
            +
            10
         | 
| 406 | 
            +
            11</pre>
         | 
| 407 | 
            +
                </td>
         | 
| 408 | 
            +
                <td>
         | 
| 409 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/nutritional_calculator/foodgroup.rb', line 9</span>
         | 
| 410 | 
            +
             | 
| 411 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_group'>group</span>
         | 
| 412 | 
            +
              <span class='ivar'>@group</span>
         | 
| 413 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 414 | 
            +
                </td>
         | 
| 415 | 
            +
              </tr>
         | 
| 416 | 
            +
            </table>
         | 
| 417 | 
            +
            </div>
         | 
| 418 | 
            +
                
         | 
| 419 | 
            +
              </div>
         | 
| 420 | 
            +
             | 
| 421 | 
            +
             | 
| 422 | 
            +
              <div id="instance_method_details" class="method_details_list">
         | 
| 423 | 
            +
                <h2>Instance Method Details</h2>
         | 
| 424 | 
            +
             | 
| 425 | 
            +
                
         | 
| 426 | 
            +
                  <div class="method_details first">
         | 
| 427 | 
            +
              <h3 class="signature first" id="to_s-instance_method">
         | 
| 428 | 
            +
              
         | 
| 429 | 
            +
                #<strong>to_s</strong>  ⇒ <tt>String</tt> 
         | 
| 430 | 
            +
              
         | 
| 431 | 
            +
             | 
| 432 | 
            +
              
         | 
| 433 | 
            +
             | 
| 434 | 
            +
              
         | 
| 435 | 
            +
            </h3><div class="docstring">
         | 
| 436 | 
            +
              <div class="discussion">
         | 
| 437 | 
            +
                
         | 
| 438 | 
            +
            <p>Método que transforma el objeto en un String. De esta forma será formateado
         | 
| 439 | 
            +
            por pantalla.</p>
         | 
| 440 | 
            +
             | 
| 441 | 
            +
             | 
| 442 | 
            +
              </div>
         | 
| 443 | 
            +
            </div>
         | 
| 444 | 
            +
            <div class="tags">
         | 
| 445 | 
            +
              
         | 
| 446 | 
            +
            <p class="tag_title">Returns:</p>
         | 
| 447 | 
            +
            <ul class="return">
         | 
| 448 | 
            +
              
         | 
| 449 | 
            +
                <li>
         | 
| 450 | 
            +
                  
         | 
| 451 | 
            +
                  
         | 
| 452 | 
            +
                    <span class='type'>(<tt>String</tt>)</span>
         | 
| 453 | 
            +
                  
         | 
| 454 | 
            +
                  
         | 
| 455 | 
            +
                  
         | 
| 456 | 
            +
                    —
         | 
| 457 | 
            +
                    <div class='inline'>
         | 
| 458 | 
            +
            <p>String con el objeto formateado.</p>
         | 
| 459 | 
            +
            </div>
         | 
| 460 | 
            +
                  
         | 
| 461 | 
            +
                </li>
         | 
| 462 | 
            +
              
         | 
| 463 | 
            +
            </ul>
         | 
| 464 | 
            +
             | 
| 465 | 
            +
            </div><table class="source_code">
         | 
| 466 | 
            +
              <tr>
         | 
| 467 | 
            +
                <td>
         | 
| 468 | 
            +
                  <pre class="lines">
         | 
| 469 | 
            +
             | 
| 470 | 
            +
             | 
| 471 | 
            +
            27
         | 
| 472 | 
            +
            28
         | 
| 473 | 
            +
            29</pre>
         | 
| 474 | 
            +
                </td>
         | 
| 475 | 
            +
                <td>
         | 
| 476 | 
            +
                  <pre class="code"><span class="info file"># File 'lib/nutritional_calculator/foodgroup.rb', line 27</span>
         | 
| 477 | 
            +
             | 
| 478 | 
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
         | 
| 479 | 
            +
              <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> grupo(</span><span class='embexpr_beg'>#{</span><span class='ivar'>@group</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>"</span></span>
         | 
| 480 | 
            +
            <span class='kw'>end</span></pre>
         | 
| 481 | 
            +
                </td>
         | 
| 482 | 
            +
              </tr>
         | 
| 483 | 
            +
            </table>
         | 
| 484 | 
            +
            </div>
         | 
| 485 | 
            +
                
         | 
| 486 | 
            +
              </div>
         | 
| 487 | 
            +
             | 
| 488 | 
            +
            </div>
         | 
| 489 | 
            +
             | 
| 490 | 
            +
                  <div id="footer">
         | 
| 491 | 
            +
              Generated on Tue Nov 14 20:38:37 2017 by
         | 
| 492 | 
            +
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         | 
| 493 | 
            +
              0.9.9 (ruby-2.3.1).
         | 
| 494 | 
            +
            </div>
         | 
| 495 | 
            +
             | 
| 496 | 
            +
                </div>
         | 
| 497 | 
            +
              </body>
         | 
| 498 | 
            +
            </html>
         |