tdd-alu0100547160 0.2.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/.coveralls.yml +1 -0
 - data/.gitignore +13 -0
 - data/.travis.yml +5 -0
 - data/Gemfile +6 -0
 - data/Guardfile +82 -0
 - data/LICENSE.txt +21 -0
 - data/README.md +39 -0
 - data/Rakefile +6 -0
 - data/bin/Guardfile +28 -0
 - data/bin/console +14 -0
 - data/bin/setup +8 -0
 - data/docs/Alimento.html +1464 -0
 - data/docs/Grupo_de_Alimento.html +650 -0
 - data/docs/Lista.html +1136 -0
 - data/docs/Nodo.html +409 -0
 - data/docs/Tdd.html +117 -0
 - data/docs/_index.html +159 -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 +122 -0
 - data/docs/file_list.html +56 -0
 - data/docs/frames.html +17 -0
 - data/docs/index.html +122 -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 +307 -0
 - data/docs/top-level-namespace.html +112 -0
 - data/lib/tdd/Alimento.rb +138 -0
 - data/lib/tdd/Lista.rb +140 -0
 - data/lib/tdd/PlatoHarvard.rb +94 -0
 - data/lib/tdd/version.rb +4 -0
 - data/lib/tdd.rb +9 -0
 - data/tdd.gemspec +41 -0
 - metadata +192 -0
 
| 
         @@ -0,0 +1,650 @@ 
     | 
|
| 
      
 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: Grupo_de_Alimento
         
     | 
| 
      
 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 = "Grupo_de_Alimento";
         
     | 
| 
      
 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 (G)</a> »
         
     | 
| 
      
 40 
     | 
    
         
            +
                
         
     | 
| 
      
 41 
     | 
    
         
            +
                
         
     | 
| 
      
 42 
     | 
    
         
            +
                <span class="title">Grupo_de_Alimento</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: Grupo_de_Alimento
         
     | 
| 
      
 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="Alimento.html" title="Alimento (class)">Alimento</a></span></span>
         
     | 
| 
      
 73 
     | 
    
         
            +
                  
         
     | 
| 
      
 74 
     | 
    
         
            +
                    <ul class="fullTree">
         
     | 
| 
      
 75 
     | 
    
         
            +
                      <li>Object</li>
         
     | 
| 
      
 76 
     | 
    
         
            +
                      
         
     | 
| 
      
 77 
     | 
    
         
            +
                        <li class="next"><span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></li>
         
     | 
| 
      
 78 
     | 
    
         
            +
                      
         
     | 
| 
      
 79 
     | 
    
         
            +
                        <li class="next">Grupo_de_Alimento</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/tdd/Alimento.rb</dd>
         
     | 
| 
      
 100 
     | 
    
         
            +
              </dl>
         
     | 
| 
      
 101 
     | 
    
         
            +
              
         
     | 
| 
      
 102 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
            <h2>Overview</h2><div class="docstring">
         
     | 
| 
      
 105 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 106 
     | 
    
         
            +
                
         
     | 
| 
      
 107 
     | 
    
         
            +
            <p>Clase Grupo_de_Alimento que hereda de Alimento</p>
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
      
 110 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 111 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 112 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 113 
     | 
    
         
            +
              
         
     | 
| 
      
 114 
     | 
    
         
            +
            <p class="tag_title">Author:</p>
         
     | 
| 
      
 115 
     | 
    
         
            +
            <ul class="author">
         
     | 
| 
      
 116 
     | 
    
         
            +
              
         
     | 
| 
      
 117 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 118 
     | 
    
         
            +
                  
         
     | 
| 
      
 119 
     | 
    
         
            +
                  
         
     | 
| 
      
 120 
     | 
    
         
            +
                  
         
     | 
| 
      
 121 
     | 
    
         
            +
                  
         
     | 
| 
      
 122 
     | 
    
         
            +
                    
         
     | 
| 
      
 123 
     | 
    
         
            +
                    <div class='inline'>
         
     | 
| 
      
 124 
     | 
    
         
            +
            <p>Lisseth Vergaray</p>
         
     | 
| 
      
 125 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 126 
     | 
    
         
            +
                  
         
     | 
| 
      
 127 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 128 
     | 
    
         
            +
              
         
     | 
| 
      
 129 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
      
 131 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 132 
     | 
    
         
            +
             
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
             
     | 
| 
      
 135 
     | 
    
         
            +
              <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
         
     | 
| 
      
 136 
     | 
    
         
            +
              <ul class="summary">
         
     | 
| 
      
 137 
     | 
    
         
            +
                
         
     | 
| 
      
 138 
     | 
    
         
            +
                  <li class="public ">
         
     | 
| 
      
 139 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 140 
     | 
    
         
            +
                
         
     | 
| 
      
 141 
     | 
    
         
            +
                  <a href="#grupo-instance_method" title="#grupo (instance method)">#<strong>grupo</strong>  ⇒ String </a>
         
     | 
| 
      
 142 
     | 
    
         
            +
                
         
     | 
| 
      
 143 
     | 
    
         
            +
             
     | 
| 
      
 144 
     | 
    
         
            +
                
         
     | 
| 
      
 145 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 146 
     | 
    
         
            +
              
         
     | 
| 
      
 147 
     | 
    
         
            +
              
         
     | 
| 
      
 148 
     | 
    
         
            +
              
         
     | 
| 
      
 149 
     | 
    
         
            +
                
         
     | 
| 
      
 150 
     | 
    
         
            +
                  <span class="note title readonly">readonly</span>
         
     | 
| 
      
 151 
     | 
    
         
            +
                
         
     | 
| 
      
 152 
     | 
    
         
            +
                
         
     | 
| 
      
 153 
     | 
    
         
            +
              
         
     | 
| 
      
 154 
     | 
    
         
            +
              
         
     | 
| 
      
 155 
     | 
    
         
            +
              
         
     | 
| 
      
 156 
     | 
    
         
            +
              
         
     | 
| 
      
 157 
     | 
    
         
            +
              
         
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
              
         
     | 
| 
      
 160 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'>
         
     | 
| 
      
 161 
     | 
    
         
            +
            <p>Grupo de alimento.</p>
         
     | 
| 
      
 162 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 163 
     | 
    
         
            +
              
         
     | 
| 
      
 164 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 165 
     | 
    
         
            +
             
     | 
| 
      
 166 
     | 
    
         
            +
                
         
     | 
| 
      
 167 
     | 
    
         
            +
              </ul>
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
             
     | 
| 
      
 170 
     | 
    
         
            +
             
     | 
| 
      
 171 
     | 
    
         
            +
              
         
     | 
| 
      
 172 
     | 
    
         
            +
              
         
     | 
| 
      
 173 
     | 
    
         
            +
              <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></h3>
         
     | 
| 
      
 174 
     | 
    
         
            +
              <p class="inherited"><span class='object_link'><a href="Alimento.html#glucidos-instance_method" title="Alimento#glucidos (method)">#glucidos</a></span>, <span class='object_link'><a href="Alimento.html#grasas-instance_method" title="Alimento#grasas (method)">#grasas</a></span>, <span class='object_link'><a href="Alimento.html#nombre-instance_method" title="Alimento#nombre (method)">#nombre</a></span>, <span class='object_link'><a href="Alimento.html#proteinas-instance_method" title="Alimento#proteinas (method)">#proteinas</a></span></p>
         
     | 
| 
      
 175 
     | 
    
         
            +
             
     | 
| 
      
 176 
     | 
    
         
            +
             
     | 
| 
      
 177 
     | 
    
         
            +
              
         
     | 
| 
      
 178 
     | 
    
         
            +
                <h2>
         
     | 
| 
      
 179 
     | 
    
         
            +
                  Instance Method Summary
         
     | 
| 
      
 180 
     | 
    
         
            +
                  <small><a href="#" class="summary_toggle">collapse</a></small>
         
     | 
| 
      
 181 
     | 
    
         
            +
                </h2>
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
      
 183 
     | 
    
         
            +
                <ul class="summary">
         
     | 
| 
      
 184 
     | 
    
         
            +
                  
         
     | 
| 
      
 185 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 186 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 187 
     | 
    
         
            +
                
         
     | 
| 
      
 188 
     | 
    
         
            +
                  <a href="#<=>-instance_method" title="#<=> (instance method)">#<strong><=></strong>(otro)  ⇒ Object </a>
         
     | 
| 
      
 189 
     | 
    
         
            +
                
         
     | 
| 
      
 190 
     | 
    
         
            +
             
     | 
| 
      
 191 
     | 
    
         
            +
                
         
     | 
| 
      
 192 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 193 
     | 
    
         
            +
              
         
     | 
| 
      
 194 
     | 
    
         
            +
              
         
     | 
| 
      
 195 
     | 
    
         
            +
              
         
     | 
| 
      
 196 
     | 
    
         
            +
              
         
     | 
| 
      
 197 
     | 
    
         
            +
              
         
     | 
| 
      
 198 
     | 
    
         
            +
              
         
     | 
| 
      
 199 
     | 
    
         
            +
              
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
              
         
     | 
| 
      
 202 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'>
         
     | 
| 
      
 203 
     | 
    
         
            +
            <p>Definiendo <=> para el Mixin de Comporable.</p>
         
     | 
| 
      
 204 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 205 
     | 
    
         
            +
              
         
     | 
| 
      
 206 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 207 
     | 
    
         
            +
             
     | 
| 
      
 208 
     | 
    
         
            +
                  
         
     | 
| 
      
 209 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 210 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 211 
     | 
    
         
            +
                
         
     | 
| 
      
 212 
     | 
    
         
            +
                  <a href="#==-instance_method" title="#== (instance method)">#<strong>==</strong>(other)  ⇒ Object </a>
         
     | 
| 
      
 213 
     | 
    
         
            +
                
         
     | 
| 
      
 214 
     | 
    
         
            +
             
     | 
| 
      
 215 
     | 
    
         
            +
                
         
     | 
| 
      
 216 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 217 
     | 
    
         
            +
              
         
     | 
| 
      
 218 
     | 
    
         
            +
              
         
     | 
| 
      
 219 
     | 
    
         
            +
              
         
     | 
| 
      
 220 
     | 
    
         
            +
              
         
     | 
| 
      
 221 
     | 
    
         
            +
              
         
     | 
| 
      
 222 
     | 
    
         
            +
              
         
     | 
| 
      
 223 
     | 
    
         
            +
              
         
     | 
| 
      
 224 
     | 
    
         
            +
             
     | 
| 
      
 225 
     | 
    
         
            +
              
         
     | 
| 
      
 226 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'>
         
     | 
| 
      
 227 
     | 
    
         
            +
            <p>Restrictivo (con herencia - usa is_a?).</p>
         
     | 
| 
      
 228 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 229 
     | 
    
         
            +
              
         
     | 
| 
      
 230 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 231 
     | 
    
         
            +
             
     | 
| 
      
 232 
     | 
    
         
            +
                  
         
     | 
| 
      
 233 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 234 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 235 
     | 
    
         
            +
                
         
     | 
| 
      
 236 
     | 
    
         
            +
                  <a href="#each-instance_method" title="#each (instance method)">#<strong>each</strong> {|@grupo| ... } ⇒ Object </a>
         
     | 
| 
      
 237 
     | 
    
         
            +
                
         
     | 
| 
      
 238 
     | 
    
         
            +
             
     | 
| 
      
 239 
     | 
    
         
            +
                
         
     | 
| 
      
 240 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 241 
     | 
    
         
            +
              
         
     | 
| 
      
 242 
     | 
    
         
            +
              
         
     | 
| 
      
 243 
     | 
    
         
            +
              
         
     | 
| 
      
 244 
     | 
    
         
            +
              
         
     | 
| 
      
 245 
     | 
    
         
            +
              
         
     | 
| 
      
 246 
     | 
    
         
            +
              
         
     | 
| 
      
 247 
     | 
    
         
            +
              
         
     | 
| 
      
 248 
     | 
    
         
            +
             
     | 
| 
      
 249 
     | 
    
         
            +
              
         
     | 
| 
      
 250 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'>
         
     | 
| 
      
 251 
     | 
    
         
            +
            <p>Método para Enumerable.</p>
         
     | 
| 
      
 252 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 253 
     | 
    
         
            +
              
         
     | 
| 
      
 254 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 255 
     | 
    
         
            +
             
     | 
| 
      
 256 
     | 
    
         
            +
                  
         
     | 
| 
      
 257 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 258 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 259 
     | 
    
         
            +
                
         
     | 
| 
      
 260 
     | 
    
         
            +
                  <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(grupo, nombre, proteinas, glucidos, grasas)  ⇒ Grupo_de_Alimento </a>
         
     | 
| 
      
 261 
     | 
    
         
            +
                
         
     | 
| 
      
 262 
     | 
    
         
            +
             
     | 
| 
      
 263 
     | 
    
         
            +
                
         
     | 
| 
      
 264 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 265 
     | 
    
         
            +
              
         
     | 
| 
      
 266 
     | 
    
         
            +
              
         
     | 
| 
      
 267 
     | 
    
         
            +
                <span class="note title constructor">constructor</span>
         
     | 
| 
      
 268 
     | 
    
         
            +
              
         
     | 
| 
      
 269 
     | 
    
         
            +
              
         
     | 
| 
      
 270 
     | 
    
         
            +
              
         
     | 
| 
      
 271 
     | 
    
         
            +
              
         
     | 
| 
      
 272 
     | 
    
         
            +
              
         
     | 
| 
      
 273 
     | 
    
         
            +
              
         
     | 
| 
      
 274 
     | 
    
         
            +
             
     | 
| 
      
 275 
     | 
    
         
            +
              
         
     | 
| 
      
 276 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'>
         
     | 
| 
      
 277 
     | 
    
         
            +
            <p>Método para inicializar el objeto.</p>
         
     | 
| 
      
 278 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 279 
     | 
    
         
            +
              
         
     | 
| 
      
 280 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 281 
     | 
    
         
            +
             
     | 
| 
      
 282 
     | 
    
         
            +
                  
         
     | 
| 
      
 283 
     | 
    
         
            +
                    <li class="public ">
         
     | 
| 
      
 284 
     | 
    
         
            +
              <span class="summary_signature">
         
     | 
| 
      
 285 
     | 
    
         
            +
                
         
     | 
| 
      
 286 
     | 
    
         
            +
                  <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong>  ⇒ Object </a>
         
     | 
| 
      
 287 
     | 
    
         
            +
                
         
     | 
| 
      
 288 
     | 
    
         
            +
             
     | 
| 
      
 289 
     | 
    
         
            +
                
         
     | 
| 
      
 290 
     | 
    
         
            +
              </span>
         
     | 
| 
      
 291 
     | 
    
         
            +
              
         
     | 
| 
      
 292 
     | 
    
         
            +
              
         
     | 
| 
      
 293 
     | 
    
         
            +
              
         
     | 
| 
      
 294 
     | 
    
         
            +
              
         
     | 
| 
      
 295 
     | 
    
         
            +
              
         
     | 
| 
      
 296 
     | 
    
         
            +
              
         
     | 
| 
      
 297 
     | 
    
         
            +
              
         
     | 
| 
      
 298 
     | 
    
         
            +
             
     | 
| 
      
 299 
     | 
    
         
            +
              
         
     | 
| 
      
 300 
     | 
    
         
            +
                <span class="summary_desc"><div class='inline'>
         
     | 
| 
      
 301 
     | 
    
         
            +
            <p>Encadenamiento (chaining).</p>
         
     | 
| 
      
 302 
     | 
    
         
            +
            </div></span>
         
     | 
| 
      
 303 
     | 
    
         
            +
              
         
     | 
| 
      
 304 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 305 
     | 
    
         
            +
             
     | 
| 
      
 306 
     | 
    
         
            +
                  
         
     | 
| 
      
 307 
     | 
    
         
            +
                </ul>
         
     | 
| 
      
 308 
     | 
    
         
            +
              
         
     | 
| 
      
 309 
     | 
    
         
            +
             
     | 
| 
      
 310 
     | 
    
         
            +
             
     | 
| 
      
 311 
     | 
    
         
            +
              
         
     | 
| 
      
 312 
     | 
    
         
            +
              
         
     | 
| 
      
 313 
     | 
    
         
            +
              
         
     | 
| 
      
 314 
     | 
    
         
            +
              
         
     | 
| 
      
 315 
     | 
    
         
            +
              
         
     | 
| 
      
 316 
     | 
    
         
            +
              
         
     | 
| 
      
 317 
     | 
    
         
            +
              
         
     | 
| 
      
 318 
     | 
    
         
            +
              
         
     | 
| 
      
 319 
     | 
    
         
            +
              <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></h3>
         
     | 
| 
      
 320 
     | 
    
         
            +
              <p class="inherited"><span class='object_link'><a href="Alimento.html#get_glucidos-instance_method" title="Alimento#get_glucidos (method)">#get_glucidos</a></span>, <span class='object_link'><a href="Alimento.html#get_grasas-instance_method" title="Alimento#get_grasas (method)">#get_grasas</a></span>, <span class='object_link'><a href="Alimento.html#get_nombre-instance_method" title="Alimento#get_nombre (method)">#get_nombre</a></span>, <span class='object_link'><a href="Alimento.html#get_proteinas-instance_method" title="Alimento#get_proteinas (method)">#get_proteinas</a></span>, <span class='object_link'><a href="Alimento.html#get_valor_energetico-instance_method" title="Alimento#get_valor_energetico (method)">#get_valor_energetico</a></span></p>
         
     | 
| 
      
 321 
     | 
    
         
            +
             
     | 
| 
      
 322 
     | 
    
         
            +
              <div id="constructor_details" class="method_details_list">
         
     | 
| 
      
 323 
     | 
    
         
            +
              <h2>Constructor Details</h2>
         
     | 
| 
      
 324 
     | 
    
         
            +
              
         
     | 
| 
      
 325 
     | 
    
         
            +
                <div class="method_details first">
         
     | 
| 
      
 326 
     | 
    
         
            +
              <h3 class="signature first" id="initialize-instance_method">
         
     | 
| 
      
 327 
     | 
    
         
            +
              
         
     | 
| 
      
 328 
     | 
    
         
            +
                #<strong>initialize</strong>(grupo, nombre, proteinas, glucidos, grasas)  ⇒ <tt><span class='object_link'><a href="" title="Grupo_de_Alimento (class)">Grupo_de_Alimento</a></span></tt> 
         
     | 
| 
      
 329 
     | 
    
         
            +
              
         
     | 
| 
      
 330 
     | 
    
         
            +
             
     | 
| 
      
 331 
     | 
    
         
            +
              
         
     | 
| 
      
 332 
     | 
    
         
            +
             
     | 
| 
      
 333 
     | 
    
         
            +
              
         
     | 
| 
      
 334 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 335 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 336 
     | 
    
         
            +
                
         
     | 
| 
      
 337 
     | 
    
         
            +
            <p>Método para inicializar el objeto</p>
         
     | 
| 
      
 338 
     | 
    
         
            +
             
     | 
| 
      
 339 
     | 
    
         
            +
             
     | 
| 
      
 340 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 341 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 342 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 343 
     | 
    
         
            +
              
         
     | 
| 
      
 344 
     | 
    
         
            +
             
     | 
| 
      
 345 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 346 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 347 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 348 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 349 
     | 
    
         
            +
             
     | 
| 
      
 350 
     | 
    
         
            +
             
     | 
| 
      
 351 
     | 
    
         
            +
            77
         
     | 
| 
      
 352 
     | 
    
         
            +
            78
         
     | 
| 
      
 353 
     | 
    
         
            +
            79
         
     | 
| 
      
 354 
     | 
    
         
            +
            80</pre>
         
     | 
| 
      
 355 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 356 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 357 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/tdd/Alimento.rb', line 77</span>
         
     | 
| 
      
 358 
     | 
    
         
            +
             
     | 
| 
      
 359 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_grupo'>grupo</span><span class='comma'>,</span> <span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_glucidos'>glucidos</span><span class='comma'>,</span> <span class='id identifier rubyid_grasas'>grasas</span> <span class='rparen'>)</span>
         
     | 
| 
      
 360 
     | 
    
         
            +
                 <span class='ivar'>@grupo</span> <span class='op'>=</span> <span class='id identifier rubyid_grupo'>grupo</span> 
         
     | 
| 
      
 361 
     | 
    
         
            +
                 <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_glucidos'>glucidos</span><span class='comma'>,</span> <span class='id identifier rubyid_grasas'>grasas</span><span class='rparen'>)</span>  <span class='comment'>#encadenamiento (chaining)
         
     | 
| 
      
 362 
     | 
    
         
            +
            </span><span class='kw'>end</span></pre>
         
     | 
| 
      
 363 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 364 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 365 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 366 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 367 
     | 
    
         
            +
              
         
     | 
| 
      
 368 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 369 
     | 
    
         
            +
             
     | 
| 
      
 370 
     | 
    
         
            +
              <div id="instance_attr_details" class="attr_details">
         
     | 
| 
      
 371 
     | 
    
         
            +
                <h2>Instance Attribute Details</h2>
         
     | 
| 
      
 372 
     | 
    
         
            +
                
         
     | 
| 
      
 373 
     | 
    
         
            +
                  
         
     | 
| 
      
 374 
     | 
    
         
            +
                  <span id=""></span>
         
     | 
| 
      
 375 
     | 
    
         
            +
                  <div class="method_details first">
         
     | 
| 
      
 376 
     | 
    
         
            +
              <h3 class="signature first" id="grupo-instance_method">
         
     | 
| 
      
 377 
     | 
    
         
            +
              
         
     | 
| 
      
 378 
     | 
    
         
            +
                #<strong>grupo</strong>  ⇒ <tt>String</tt>  <span class="extras">(readonly)</span>
         
     | 
| 
      
 379 
     | 
    
         
            +
              
         
     | 
| 
      
 380 
     | 
    
         
            +
             
     | 
| 
      
 381 
     | 
    
         
            +
              
         
     | 
| 
      
 382 
     | 
    
         
            +
             
     | 
| 
      
 383 
     | 
    
         
            +
              
         
     | 
| 
      
 384 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 385 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 386 
     | 
    
         
            +
                
         
     | 
| 
      
 387 
     | 
    
         
            +
            <p>Returns grupo de alimento</p>
         
     | 
| 
      
 388 
     | 
    
         
            +
             
     | 
| 
      
 389 
     | 
    
         
            +
             
     | 
| 
      
 390 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 391 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 392 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 393 
     | 
    
         
            +
              
         
     | 
| 
      
 394 
     | 
    
         
            +
            <p class="tag_title">Returns:</p>
         
     | 
| 
      
 395 
     | 
    
         
            +
            <ul class="return">
         
     | 
| 
      
 396 
     | 
    
         
            +
              
         
     | 
| 
      
 397 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 398 
     | 
    
         
            +
                  
         
     | 
| 
      
 399 
     | 
    
         
            +
                  
         
     | 
| 
      
 400 
     | 
    
         
            +
                    <span class='type'>(<tt>String</tt>)</span>
         
     | 
| 
      
 401 
     | 
    
         
            +
                  
         
     | 
| 
      
 402 
     | 
    
         
            +
                  
         
     | 
| 
      
 403 
     | 
    
         
            +
                  
         
     | 
| 
      
 404 
     | 
    
         
            +
                    —
         
     | 
| 
      
 405 
     | 
    
         
            +
                    <div class='inline'>
         
     | 
| 
      
 406 
     | 
    
         
            +
            <p>grupo de alimento</p>
         
     | 
| 
      
 407 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 408 
     | 
    
         
            +
                  
         
     | 
| 
      
 409 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 410 
     | 
    
         
            +
              
         
     | 
| 
      
 411 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 412 
     | 
    
         
            +
             
     | 
| 
      
 413 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 414 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 415 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 416 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 417 
     | 
    
         
            +
             
     | 
| 
      
 418 
     | 
    
         
            +
             
     | 
| 
      
 419 
     | 
    
         
            +
            75
         
     | 
| 
      
 420 
     | 
    
         
            +
            76
         
     | 
| 
      
 421 
     | 
    
         
            +
            77</pre>
         
     | 
| 
      
 422 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 423 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 424 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/tdd/Alimento.rb', line 75</span>
         
     | 
| 
      
 425 
     | 
    
         
            +
             
     | 
| 
      
 426 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_grupo'>grupo</span>
         
     | 
| 
      
 427 
     | 
    
         
            +
              <span class='ivar'>@grupo</span>
         
     | 
| 
      
 428 
     | 
    
         
            +
            <span class='kw'>end</span></pre>
         
     | 
| 
      
 429 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 430 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 431 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 432 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 433 
     | 
    
         
            +
                
         
     | 
| 
      
 434 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 435 
     | 
    
         
            +
             
     | 
| 
      
 436 
     | 
    
         
            +
             
     | 
| 
      
 437 
     | 
    
         
            +
              <div id="instance_method_details" class="method_details_list">
         
     | 
| 
      
 438 
     | 
    
         
            +
                <h2>Instance Method Details</h2>
         
     | 
| 
      
 439 
     | 
    
         
            +
             
     | 
| 
      
 440 
     | 
    
         
            +
                
         
     | 
| 
      
 441 
     | 
    
         
            +
                  <div class="method_details first">
         
     | 
| 
      
 442 
     | 
    
         
            +
              <h3 class="signature first" id="<=>-instance_method">
         
     | 
| 
      
 443 
     | 
    
         
            +
              
         
     | 
| 
      
 444 
     | 
    
         
            +
                #<strong><=></strong>(otro)  ⇒ <tt>Object</tt> 
         
     | 
| 
      
 445 
     | 
    
         
            +
              
         
     | 
| 
      
 446 
     | 
    
         
            +
             
     | 
| 
      
 447 
     | 
    
         
            +
              
         
     | 
| 
      
 448 
     | 
    
         
            +
             
     | 
| 
      
 449 
     | 
    
         
            +
              
         
     | 
| 
      
 450 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 451 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 452 
     | 
    
         
            +
                
         
     | 
| 
      
 453 
     | 
    
         
            +
            <p>Definiendo <=> para el Mixin de Comporable</p>
         
     | 
| 
      
 454 
     | 
    
         
            +
             
     | 
| 
      
 455 
     | 
    
         
            +
             
     | 
| 
      
 456 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 457 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 458 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 459 
     | 
    
         
            +
              
         
     | 
| 
      
 460 
     | 
    
         
            +
             
     | 
| 
      
 461 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 462 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 463 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 464 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 465 
     | 
    
         
            +
             
     | 
| 
      
 466 
     | 
    
         
            +
             
     | 
| 
      
 467 
     | 
    
         
            +
            95
         
     | 
| 
      
 468 
     | 
    
         
            +
            96
         
     | 
| 
      
 469 
     | 
    
         
            +
            97</pre>
         
     | 
| 
      
 470 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 471 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 472 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/tdd/Alimento.rb', line 95</span>
         
     | 
| 
      
 473 
     | 
    
         
            +
             
     | 
| 
      
 474 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='op'><=></span><span class='lparen'>(</span><span class='id identifier rubyid_otro'>otro</span><span class='rparen'>)</span>
         
     | 
| 
      
 475 
     | 
    
         
            +
                <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_valor_energetico'>get_valor_energetico</span> <span class='op'><=></span> <span class='id identifier rubyid_otro'>otro</span><span class='period'>.</span><span class='id identifier rubyid_get_valor_energetico'>get_valor_energetico</span> <span class='comment'>#&& self.grupo <=> otro.grupo
         
     | 
| 
      
 476 
     | 
    
         
            +
            </span><span class='kw'>end</span></pre>
         
     | 
| 
      
 477 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 478 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 479 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 480 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 481 
     | 
    
         
            +
                
         
     | 
| 
      
 482 
     | 
    
         
            +
                  <div class="method_details ">
         
     | 
| 
      
 483 
     | 
    
         
            +
              <h3 class="signature " id="==-instance_method">
         
     | 
| 
      
 484 
     | 
    
         
            +
              
         
     | 
| 
      
 485 
     | 
    
         
            +
                #<strong>==</strong>(other)  ⇒ <tt>Object</tt> 
         
     | 
| 
      
 486 
     | 
    
         
            +
              
         
     | 
| 
      
 487 
     | 
    
         
            +
             
     | 
| 
      
 488 
     | 
    
         
            +
              
         
     | 
| 
      
 489 
     | 
    
         
            +
             
     | 
| 
      
 490 
     | 
    
         
            +
              
         
     | 
| 
      
 491 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 492 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 493 
     | 
    
         
            +
                
         
     | 
| 
      
 494 
     | 
    
         
            +
            <p>Restrictivo (con herencia - usa is_a?)</p>
         
     | 
| 
      
 495 
     | 
    
         
            +
             
     | 
| 
      
 496 
     | 
    
         
            +
             
     | 
| 
      
 497 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 498 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 499 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 500 
     | 
    
         
            +
              
         
     | 
| 
      
 501 
     | 
    
         
            +
             
     | 
| 
      
 502 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 503 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 504 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 505 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 506 
     | 
    
         
            +
             
     | 
| 
      
 507 
     | 
    
         
            +
             
     | 
| 
      
 508 
     | 
    
         
            +
            87
         
     | 
| 
      
 509 
     | 
    
         
            +
            88
         
     | 
| 
      
 510 
     | 
    
         
            +
            89
         
     | 
| 
      
 511 
     | 
    
         
            +
            90
         
     | 
| 
      
 512 
     | 
    
         
            +
            91
         
     | 
| 
      
 513 
     | 
    
         
            +
            92
         
     | 
| 
      
 514 
     | 
    
         
            +
            93</pre>
         
     | 
| 
      
 515 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 516 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 517 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/tdd/Alimento.rb', line 87</span>
         
     | 
| 
      
 518 
     | 
    
         
            +
             
     | 
| 
      
 519 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
         
     | 
| 
      
 520 
     | 
    
         
            +
                <span class='kw'>if</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='const'>Alimento</span>
         
     | 
| 
      
 521 
     | 
    
         
            +
                    <span class='ivar'>@nombre</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_nombre'>nombre</span> <span class='op'>&&</span> <span class='ivar'>@proteinas</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_proteinas'>proteinas</span> <span class='op'>&&</span> <span class='ivar'>@glucidos</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_glucidos'>glucidos</span> <span class='op'>&&</span> <span class='ivar'>@grasas</span> <span class='op'>=</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_grasas'>grasas</span>
         
     | 
| 
      
 522 
     | 
    
         
            +
                <span class='kw'>else</span>
         
     | 
| 
      
 523 
     | 
    
         
            +
                    <span class='kw'>false</span>
         
     | 
| 
      
 524 
     | 
    
         
            +
                <span class='kw'>end</span>
         
     | 
| 
      
 525 
     | 
    
         
            +
            <span class='kw'>end</span></pre>
         
     | 
| 
      
 526 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 527 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 528 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 529 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 530 
     | 
    
         
            +
                
         
     | 
| 
      
 531 
     | 
    
         
            +
                  <div class="method_details ">
         
     | 
| 
      
 532 
     | 
    
         
            +
              <h3 class="signature " id="each-instance_method">
         
     | 
| 
      
 533 
     | 
    
         
            +
              
         
     | 
| 
      
 534 
     | 
    
         
            +
                #<strong>each</strong> {|@grupo| ... } ⇒ <tt>Object</tt> 
         
     | 
| 
      
 535 
     | 
    
         
            +
              
         
     | 
| 
      
 536 
     | 
    
         
            +
             
     | 
| 
      
 537 
     | 
    
         
            +
              
         
     | 
| 
      
 538 
     | 
    
         
            +
             
     | 
| 
      
 539 
     | 
    
         
            +
              
         
     | 
| 
      
 540 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 541 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 542 
     | 
    
         
            +
                
         
     | 
| 
      
 543 
     | 
    
         
            +
            <p>Método para Enumerable</p>
         
     | 
| 
      
 544 
     | 
    
         
            +
             
     | 
| 
      
 545 
     | 
    
         
            +
             
     | 
| 
      
 546 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 547 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 548 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 549 
     | 
    
         
            +
              
         
     | 
| 
      
 550 
     | 
    
         
            +
            <p class="tag_title">Yields:</p>
         
     | 
| 
      
 551 
     | 
    
         
            +
            <ul class="yield">
         
     | 
| 
      
 552 
     | 
    
         
            +
              
         
     | 
| 
      
 553 
     | 
    
         
            +
                <li>
         
     | 
| 
      
 554 
     | 
    
         
            +
                  
         
     | 
| 
      
 555 
     | 
    
         
            +
                  
         
     | 
| 
      
 556 
     | 
    
         
            +
                    <span class='type'>(<tt>@<span class='object_link'><a href="#grupo-instance_method" title="Grupo_de_Alimento#grupo (method)">grupo</a></span></tt>)</span>
         
     | 
| 
      
 557 
     | 
    
         
            +
                  
         
     | 
| 
      
 558 
     | 
    
         
            +
                  
         
     | 
| 
      
 559 
     | 
    
         
            +
                  
         
     | 
| 
      
 560 
     | 
    
         
            +
                </li>
         
     | 
| 
      
 561 
     | 
    
         
            +
              
         
     | 
| 
      
 562 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 563 
     | 
    
         
            +
             
     | 
| 
      
 564 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 565 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 566 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 567 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 568 
     | 
    
         
            +
             
     | 
| 
      
 569 
     | 
    
         
            +
             
     | 
| 
      
 570 
     | 
    
         
            +
            99
         
     | 
| 
      
 571 
     | 
    
         
            +
            100
         
     | 
| 
      
 572 
     | 
    
         
            +
            101
         
     | 
| 
      
 573 
     | 
    
         
            +
            102
         
     | 
| 
      
 574 
     | 
    
         
            +
            103
         
     | 
| 
      
 575 
     | 
    
         
            +
            104
         
     | 
| 
      
 576 
     | 
    
         
            +
            105
         
     | 
| 
      
 577 
     | 
    
         
            +
            106</pre>
         
     | 
| 
      
 578 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 579 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 580 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/tdd/Alimento.rb', line 99</span>
         
     | 
| 
      
 581 
     | 
    
         
            +
             
     | 
| 
      
 582 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span> 
         
     | 
| 
      
 583 
     | 
    
         
            +
                <span class='kw'>yield</span> <span class='ivar'>@grupo</span>
         
     | 
| 
      
 584 
     | 
    
         
            +
                <span class='kw'>yield</span> <span class='ivar'>@nombre</span>
         
     | 
| 
      
 585 
     | 
    
         
            +
                <span class='kw'>yield</span> <span class='ivar'>@proteinas</span>
         
     | 
| 
      
 586 
     | 
    
         
            +
                <span class='kw'>yield</span> <span class='ivar'>@glucidos</span>
         
     | 
| 
      
 587 
     | 
    
         
            +
                <span class='kw'>yield</span> <span class='ivar'>@grasas</span>
         
     | 
| 
      
 588 
     | 
    
         
            +
                <span class='kw'>yield</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_get_valor_energetico'>get_valor_energetico</span>
         
     | 
| 
      
 589 
     | 
    
         
            +
            <span class='kw'>end</span></pre>
         
     | 
| 
      
 590 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 591 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 592 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 593 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 594 
     | 
    
         
            +
                
         
     | 
| 
      
 595 
     | 
    
         
            +
                  <div class="method_details ">
         
     | 
| 
      
 596 
     | 
    
         
            +
              <h3 class="signature " id="to_s-instance_method">
         
     | 
| 
      
 597 
     | 
    
         
            +
              
         
     | 
| 
      
 598 
     | 
    
         
            +
                #<strong>to_s</strong>  ⇒ <tt>Object</tt> 
         
     | 
| 
      
 599 
     | 
    
         
            +
              
         
     | 
| 
      
 600 
     | 
    
         
            +
             
     | 
| 
      
 601 
     | 
    
         
            +
              
         
     | 
| 
      
 602 
     | 
    
         
            +
             
     | 
| 
      
 603 
     | 
    
         
            +
              
         
     | 
| 
      
 604 
     | 
    
         
            +
            </h3><div class="docstring">
         
     | 
| 
      
 605 
     | 
    
         
            +
              <div class="discussion">
         
     | 
| 
      
 606 
     | 
    
         
            +
                
         
     | 
| 
      
 607 
     | 
    
         
            +
            <p>Encadenamiento (chaining)</p>
         
     | 
| 
      
 608 
     | 
    
         
            +
             
     | 
| 
      
 609 
     | 
    
         
            +
             
     | 
| 
      
 610 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 611 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 612 
     | 
    
         
            +
            <div class="tags">
         
     | 
| 
      
 613 
     | 
    
         
            +
              
         
     | 
| 
      
 614 
     | 
    
         
            +
             
     | 
| 
      
 615 
     | 
    
         
            +
            </div><table class="source_code">
         
     | 
| 
      
 616 
     | 
    
         
            +
              <tr>
         
     | 
| 
      
 617 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 618 
     | 
    
         
            +
                  <pre class="lines">
         
     | 
| 
      
 619 
     | 
    
         
            +
             
     | 
| 
      
 620 
     | 
    
         
            +
             
     | 
| 
      
 621 
     | 
    
         
            +
            82
         
     | 
| 
      
 622 
     | 
    
         
            +
            83
         
     | 
| 
      
 623 
     | 
    
         
            +
            84
         
     | 
| 
      
 624 
     | 
    
         
            +
            85</pre>
         
     | 
| 
      
 625 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 626 
     | 
    
         
            +
                <td>
         
     | 
| 
      
 627 
     | 
    
         
            +
                  <pre class="code"><span class="info file"># File 'lib/tdd/Alimento.rb', line 82</span>
         
     | 
| 
      
 628 
     | 
    
         
            +
             
     | 
| 
      
 629 
     | 
    
         
            +
            <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
         
     | 
| 
      
 630 
     | 
    
         
            +
            <span class='id identifier rubyid_s'>s</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grupo</span><span class='embexpr_end'>}</span><span class='tstring_content'>    </span><span class='tstring_end'>"</span></span>
         
     | 
| 
      
 631 
     | 
    
         
            +
            <span class='id identifier rubyid_s'>s</span> <span class='op'><<</span> <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>  
         
     | 
| 
      
 632 
     | 
    
         
            +
            <span class='kw'>end</span></pre>
         
     | 
| 
      
 633 
     | 
    
         
            +
                </td>
         
     | 
| 
      
 634 
     | 
    
         
            +
              </tr>
         
     | 
| 
      
 635 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 636 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 637 
     | 
    
         
            +
                
         
     | 
| 
      
 638 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 639 
     | 
    
         
            +
             
     | 
| 
      
 640 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 641 
     | 
    
         
            +
             
     | 
| 
      
 642 
     | 
    
         
            +
                  <div id="footer">
         
     | 
| 
      
 643 
     | 
    
         
            +
              Generated on Wed Nov 15 03:29:45 2017 by
         
     | 
| 
      
 644 
     | 
    
         
            +
              <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
         
     | 
| 
      
 645 
     | 
    
         
            +
              0.9.9 (ruby-2.3.4).
         
     | 
| 
      
 646 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 647 
     | 
    
         
            +
             
     | 
| 
      
 648 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 649 
     | 
    
         
            +
              </body>
         
     | 
| 
      
 650 
     | 
    
         
            +
            </html>
         
     |