nutritag 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 82bc2daf328a84e481dfa436b1b6c3f698982cd7afd949d038713bd0c4758270
4
+ data.tar.gz: 046d71a07536d8fe273a7a42638ed7c3e330385f8f304b365667c6fc8690cda0
5
+ SHA512:
6
+ metadata.gz: bcf782bc371d9507bc7fc6e2c57a242e725e7fd1dc8e5fe2535cded9742d88c6718e638419d07fa04884c38257e53b018cd814824441220dc1d6128b3591788b
7
+ data.tar.gz: 284c254581bfa8b00c0091b21a9509c0287105cc4ebbc12b78934000b8bcfdc2fd7325bb769f70fbae7d4d44db167b7ef30521b4a25cc5a2ee1777b7538882e3
@@ -0,0 +1,2 @@
1
+ service_name: travis-ci
2
+ repo_token: infeUsM2oyfgQkf7BxFwzdx57w26aJpsh
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ #/doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,6 @@
1
+ #Añadiento el fichero para Travis
2
+ sudo: false
3
+ language: ruby
4
+ rvm:
5
+ - 2.5.1
6
+ before_install: gem install bundler -v 1.16.2
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in nutritag.gemspec
6
+ gemspec
@@ -0,0 +1,111 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ nutritag (0.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ coderay (1.1.2)
10
+ coveralls (0.7.1)
11
+ multi_json (~> 1.3)
12
+ rest-client
13
+ simplecov (>= 0.7)
14
+ term-ansicolor
15
+ thor
16
+ diff-lcs (1.3)
17
+ docile (1.3.1)
18
+ domain_name (0.5.20180417)
19
+ unf (>= 0.0.5, < 1.0.0)
20
+ ffi (1.9.25)
21
+ formatador (0.2.5)
22
+ guard (2.15.0)
23
+ formatador (>= 0.2.4)
24
+ listen (>= 2.7, < 4.0)
25
+ lumberjack (>= 1.0.12, < 2.0)
26
+ nenv (~> 0.1)
27
+ notiffany (~> 0.0)
28
+ pry (>= 0.9.12)
29
+ shellany (~> 0.0)
30
+ thor (>= 0.18.1)
31
+ guard-bundler (2.1.0)
32
+ bundler (~> 1.0)
33
+ guard (~> 2.2)
34
+ guard-compat (~> 1.1)
35
+ guard-compat (1.2.1)
36
+ guard-rspec (4.7.3)
37
+ guard (~> 2.1)
38
+ guard-compat (~> 1.1)
39
+ rspec (>= 2.99.0, < 4.0)
40
+ http-cookie (1.0.3)
41
+ domain_name (~> 0.5)
42
+ json (2.1.0)
43
+ listen (3.1.5)
44
+ rb-fsevent (~> 0.9, >= 0.9.4)
45
+ rb-inotify (~> 0.9, >= 0.9.7)
46
+ ruby_dep (~> 1.2)
47
+ lumberjack (1.0.13)
48
+ method_source (0.9.2)
49
+ mime-types (3.2.2)
50
+ mime-types-data (~> 3.2015)
51
+ mime-types-data (3.2018.0812)
52
+ multi_json (1.13.1)
53
+ nenv (0.3.0)
54
+ netrc (0.11.0)
55
+ notiffany (0.1.1)
56
+ nenv (~> 0.1)
57
+ shellany (~> 0.0)
58
+ pry (0.12.2)
59
+ coderay (~> 1.1.0)
60
+ method_source (~> 0.9.0)
61
+ rake (10.5.0)
62
+ rb-fsevent (0.10.3)
63
+ rb-inotify (0.9.10)
64
+ ffi (>= 0.5.0, < 2)
65
+ rest-client (2.0.2)
66
+ http-cookie (>= 1.0.2, < 2.0)
67
+ mime-types (>= 1.16, < 4.0)
68
+ netrc (~> 0.8)
69
+ rspec (3.8.0)
70
+ rspec-core (~> 3.8.0)
71
+ rspec-expectations (~> 3.8.0)
72
+ rspec-mocks (~> 3.8.0)
73
+ rspec-core (3.8.0)
74
+ rspec-support (~> 3.8.0)
75
+ rspec-expectations (3.8.2)
76
+ diff-lcs (>= 1.2.0, < 2.0)
77
+ rspec-support (~> 3.8.0)
78
+ rspec-mocks (3.8.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.8.0)
81
+ rspec-support (3.8.0)
82
+ ruby_dep (1.5.0)
83
+ shellany (0.0.1)
84
+ simplecov (0.16.1)
85
+ docile (~> 1.1)
86
+ json (>= 1.8, < 3)
87
+ simplecov-html (~> 0.10.0)
88
+ simplecov-html (0.10.2)
89
+ term-ansicolor (1.7.0)
90
+ tins (~> 1.0)
91
+ thor (0.20.3)
92
+ tins (1.20.2)
93
+ unf (0.1.4)
94
+ unf_ext
95
+ unf_ext (0.0.7.5)
96
+
97
+ PLATFORMS
98
+ ruby
99
+
100
+ DEPENDENCIES
101
+ bundler (~> 1.16)
102
+ coveralls
103
+ guard
104
+ guard-bundler
105
+ guard-rspec
106
+ nutritag!
107
+ rake (~> 10.0)
108
+ rspec (~> 3.0)
109
+
110
+ BUNDLED WITH
111
+ 1.16.2
@@ -0,0 +1,82 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ guard :bundler do
19
+ require 'guard/bundler'
20
+ require 'guard/bundler/verify'
21
+ helper = Guard::Bundler::Verify.new
22
+
23
+ files = ['Gemfile']
24
+ files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
25
+
26
+ # Assume files are symlinked from somewhere
27
+ files.each { |file| watch(helper.real_path(file)) }
28
+ end
29
+
30
+ # Note: The cmd option is now required due to the increasing number of ways
31
+ # rspec may be run, below are examples of the most common uses.
32
+ # * bundler: 'bundle exec rspec'
33
+ # * bundler binstubs: 'bin/rspec'
34
+ # * spring: 'bin/rspec' (This will use spring if running and you have
35
+ # installed the spring binstubs per the docs)
36
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
37
+ # * 'just' rspec: 'rspec'
38
+
39
+ guard :rspec, cmd: "bundle exec rspec" do
40
+ require "guard/rspec/dsl"
41
+ dsl = Guard::RSpec::Dsl.new(self)
42
+
43
+ # Feel free to open issues for suggestions and improvements
44
+
45
+ # RSpec files
46
+ rspec = dsl.rspec
47
+ watch(rspec.spec_helper) { rspec.spec_dir }
48
+ watch(rspec.spec_support) { rspec.spec_dir }
49
+ watch(rspec.spec_files)
50
+
51
+ # Ruby files
52
+ ruby = dsl.ruby
53
+ dsl.watch_spec_files_for(ruby.lib_files)
54
+
55
+ # Rails files
56
+ rails = dsl.rails(view_extensions: %w(erb haml slim))
57
+ dsl.watch_spec_files_for(rails.app_files)
58
+ dsl.watch_spec_files_for(rails.views)
59
+
60
+ watch(rails.controllers) do |m|
61
+ [
62
+ rspec.spec.call("routing/#{m[1]}_routing"),
63
+ rspec.spec.call("controllers/#{m[1]}_controller"),
64
+ rspec.spec.call("acceptance/#{m[1]}")
65
+ ]
66
+ end
67
+
68
+ # Rails config changes
69
+ watch(rails.spec_helper) { rspec.spec_dir }
70
+ watch(rails.routes) { "#{rspec.spec_dir}/routing" }
71
+ watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
72
+
73
+ # Capybara features specs
74
+ watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
75
+ watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
76
+
77
+ # Turnip features and steps
78
+ watch(%r{^spec/acceptance/(.+)\.feature$})
79
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
80
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
81
+ end
82
+ end
@@ -0,0 +1,34 @@
1
+ # Nutritag
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/nutritag`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+ PRUEBA PARA VER QUE TRAVIS FUNCIONA
9
+
10
+ ```ruby
11
+ gem 'nutritag'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install nutritag
21
+
22
+ ## Usage
23
+
24
+ Descripción del aporte energético y contenido de nutrientes de un alimento. Ejecutar con Rake
25
+
26
+ ## Development
27
+
28
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
29
+
30
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
31
+
32
+ ## Contributing
33
+
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/nutritag.
@@ -0,0 +1,16 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ desc "Ejecutar las espectativas de las clases"
9
+ task :spec do
10
+ sh "rspec -I. spec/nutritag_spec.rb"
11
+ end
12
+
13
+ desc "Ejecutar con Documentacion"
14
+ task :doc do
15
+ sh "rspec -I. spec/nutritag_spec.rb --format documentation"
16
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "nutritag"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,1156 @@
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: Anthro_data
8
+
9
+ &mdash; Documentation by YARD 0.9.16
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 = "Anthro_data";
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 (A)</a> &raquo;
40
+
41
+
42
+ <span class="title">Anthro_data</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: Anthro_data
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Anthro_data</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/nutritag/anthro_data.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>module Datos</p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+
113
+ </div>
114
+
115
+
116
+
117
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
118
+ <ul class="summary">
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#cadera-instance_method" title="#cadera (instance method)">#<strong>cadera</strong> &#x21d2; Object </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+
130
+
131
+
132
+ <span class="note title readonly">readonly</span>
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <span class="summary_desc"><div class='inline'>
143
+ <p>Returns the value of attribute cadera.</p>
144
+ </div></span>
145
+
146
+ </li>
147
+
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#cintura-instance_method" title="#cintura (instance method)">#<strong>cintura</strong> &#x21d2; Object </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+ <span class="note title readonly">readonly</span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>Returns the value of attribute cintura.</p>
173
+ </div></span>
174
+
175
+ </li>
176
+
177
+
178
+ <li class="public ">
179
+ <span class="summary_signature">
180
+
181
+ <a href="#edad-instance_method" title="#edad (instance method)">#<strong>edad</strong> &#x21d2; Object </a>
182
+
183
+
184
+
185
+ </span>
186
+
187
+
188
+
189
+
190
+ <span class="note title readonly">readonly</span>
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'>
201
+ <p>Returns the value of attribute edad.</p>
202
+ </div></span>
203
+
204
+ </li>
205
+
206
+
207
+ <li class="public ">
208
+ <span class="summary_signature">
209
+
210
+ <a href="#peso-instance_method" title="#peso (instance method)">#<strong>peso</strong> &#x21d2; Object </a>
211
+
212
+
213
+
214
+ </span>
215
+
216
+
217
+
218
+
219
+ <span class="note title readonly">readonly</span>
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+ <span class="summary_desc"><div class='inline'>
230
+ <p>Returns the value of attribute peso.</p>
231
+ </div></span>
232
+
233
+ </li>
234
+
235
+
236
+ <li class="public ">
237
+ <span class="summary_signature">
238
+
239
+ <a href="#sexo-instance_method" title="#sexo (instance method)">#<strong>sexo</strong> &#x21d2; Object </a>
240
+
241
+
242
+
243
+ </span>
244
+
245
+
246
+
247
+
248
+ <span class="note title readonly">readonly</span>
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+ <span class="summary_desc"><div class='inline'>
259
+ <p>Returns the value of attribute sexo.</p>
260
+ </div></span>
261
+
262
+ </li>
263
+
264
+
265
+ <li class="public ">
266
+ <span class="summary_signature">
267
+
268
+ <a href="#talla-instance_method" title="#talla (instance method)">#<strong>talla</strong> &#x21d2; Object </a>
269
+
270
+
271
+
272
+ </span>
273
+
274
+
275
+
276
+
277
+ <span class="note title readonly">readonly</span>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+ <span class="summary_desc"><div class='inline'>
288
+ <p>Returns the value of attribute talla.</p>
289
+ </div></span>
290
+
291
+ </li>
292
+
293
+
294
+ </ul>
295
+
296
+
297
+
298
+
299
+
300
+ <h2>
301
+ Instance Method Summary
302
+ <small><a href="#" class="summary_toggle">collapse</a></small>
303
+ </h2>
304
+
305
+ <ul class="summary">
306
+
307
+ <li class="public ">
308
+ <span class="summary_signature">
309
+
310
+ <a href="#av_cadera-instance_method" title="#av_cadera (instance method)">#<strong>av_cadera</strong> &#x21d2; Object </a>
311
+
312
+
313
+
314
+ </span>
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+ <span class="summary_desc"><div class='inline'></div></span>
325
+
326
+ </li>
327
+
328
+
329
+ <li class="public ">
330
+ <span class="summary_signature">
331
+
332
+ <a href="#av_cintura-instance_method" title="#av_cintura (instance method)">#<strong>av_cintura</strong> &#x21d2; Object </a>
333
+
334
+
335
+
336
+ </span>
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+ <span class="summary_desc"><div class='inline'></div></span>
347
+
348
+ </li>
349
+
350
+
351
+ <li class="public ">
352
+ <span class="summary_signature">
353
+
354
+ <a href="#grasa-instance_method" title="#grasa (instance method)">#<strong>grasa</strong> &#x21d2; Object </a>
355
+
356
+
357
+
358
+ </span>
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+ <span class="summary_desc"><div class='inline'></div></span>
369
+
370
+ </li>
371
+
372
+
373
+ <li class="public ">
374
+ <span class="summary_signature">
375
+
376
+ <a href="#imc-instance_method" title="#imc (instance method)">#<strong>imc</strong> &#x21d2; Object </a>
377
+
378
+
379
+
380
+ </span>
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+ <span class="summary_desc"><div class='inline'></div></span>
391
+
392
+ </li>
393
+
394
+
395
+ <li class="public ">
396
+ <span class="summary_signature">
397
+
398
+ <a href="#imc_table-instance_method" title="#imc_table (instance method)">#<strong>imc_table</strong> &#x21d2; Object </a>
399
+
400
+
401
+
402
+ </span>
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+ <span class="summary_desc"><div class='inline'></div></span>
413
+
414
+ </li>
415
+
416
+
417
+ <li class="public ">
418
+ <span class="summary_signature">
419
+
420
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(peso, talla, edad, sexo, cintura, cadera) &#x21d2; Anthro_data </a>
421
+
422
+
423
+
424
+ </span>
425
+
426
+
427
+ <span class="note title constructor">constructor</span>
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+ <span class="summary_desc"><div class='inline'>
437
+ <p>A new instance of Anthro_data.</p>
438
+ </div></span>
439
+
440
+ </li>
441
+
442
+
443
+ <li class="public ">
444
+ <span class="summary_signature">
445
+
446
+ <a href="#rcc-instance_method" title="#rcc (instance method)">#<strong>rcc</strong> &#x21d2; Object </a>
447
+
448
+
449
+
450
+ </span>
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+ <span class="summary_desc"><div class='inline'></div></span>
461
+
462
+ </li>
463
+
464
+
465
+ <li class="public ">
466
+ <span class="summary_signature">
467
+
468
+ <a href="#rcc_table-instance_method" title="#rcc_table (instance method)">#<strong>rcc_table</strong> &#x21d2; Object </a>
469
+
470
+
471
+
472
+ </span>
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+ <span class="summary_desc"><div class='inline'></div></span>
483
+
484
+ </li>
485
+
486
+
487
+ <li class="public ">
488
+ <span class="summary_signature">
489
+
490
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
491
+
492
+
493
+
494
+ </span>
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+ <span class="summary_desc"><div class='inline'></div></span>
505
+
506
+ </li>
507
+
508
+
509
+ </ul>
510
+
511
+
512
+ <div id="constructor_details" class="method_details_list">
513
+ <h2>Constructor Details</h2>
514
+
515
+ <div class="method_details first">
516
+ <h3 class="signature first" id="initialize-instance_method">
517
+
518
+ #<strong>initialize</strong>(peso, talla, edad, sexo, cintura, cadera) &#x21d2; <tt><span class='object_link'><a href="" title="Anthro_data (class)">Anthro_data</a></span></tt>
519
+
520
+
521
+
522
+
523
+
524
+ </h3><div class="docstring">
525
+ <div class="discussion">
526
+
527
+ <p>Returns a new instance of Anthro_data</p>
528
+
529
+
530
+ </div>
531
+ </div>
532
+ <div class="tags">
533
+
534
+
535
+ </div><table class="source_code">
536
+ <tr>
537
+ <td>
538
+ <pre class="lines">
539
+
540
+
541
+ 6
542
+ 7
543
+ 8
544
+ 9
545
+ 10
546
+ 11
547
+ 12
548
+ 13
549
+ 14
550
+ 15
551
+ 16
552
+ 17
553
+ 18
554
+ 19</pre>
555
+ </td>
556
+ <td>
557
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 6</span>
558
+
559
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_peso'>peso</span><span class='comma'>,</span> <span class='id identifier rubyid_talla'>talla</span><span class='comma'>,</span> <span class='id identifier rubyid_edad'>edad</span> <span class='comma'>,</span><span class='id identifier rubyid_sexo'>sexo</span><span class='comma'>,</span> <span class='id identifier rubyid_cintura'>cintura</span><span class='comma'>,</span> <span class='id identifier rubyid_cadera'>cadera</span><span class='rparen'>)</span>
560
+ <span class='ivar'>@peso</span><span class='op'>=</span><span class='id identifier rubyid_peso'>peso</span>
561
+ <span class='ivar'>@talla</span><span class='op'>=</span><span class='id identifier rubyid_talla'>talla</span>
562
+ <span class='ivar'>@edad</span><span class='op'>=</span><span class='id identifier rubyid_edad'>edad</span>
563
+ <span class='ivar'>@sexo</span><span class='op'>=</span><span class='id identifier rubyid_sexo'>sexo</span>
564
+ <span class='ivar'>@cintura</span><span class='op'>=</span><span class='id identifier rubyid_cintura'>cintura</span>
565
+ <span class='ivar'>@cadera</span><span class='op'>=</span><span class='id identifier rubyid_cadera'>cadera</span>
566
+
567
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_sexo'>sexo</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>hombre</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
568
+ <span class='ivar'>@sexo</span> <span class='op'>=</span> <span class='int'>1</span><span class='semicolon'>;</span>
569
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_sexo'>sexo</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>mujer</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
570
+ <span class='ivar'>@sexo</span> <span class='op'>=</span> <span class='int'>0</span><span class='semicolon'>;</span>
571
+ <span class='kw'>end</span>
572
+ <span class='kw'>end</span></pre>
573
+ </td>
574
+ </tr>
575
+ </table>
576
+ </div>
577
+
578
+ </div>
579
+
580
+ <div id="instance_attr_details" class="attr_details">
581
+ <h2>Instance Attribute Details</h2>
582
+
583
+
584
+ <span id=""></span>
585
+ <div class="method_details first">
586
+ <h3 class="signature first" id="cadera-instance_method">
587
+
588
+ #<strong>cadera</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
589
+
590
+
591
+
592
+
593
+
594
+ </h3><div class="docstring">
595
+ <div class="discussion">
596
+
597
+ <p>Returns the value of attribute cadera</p>
598
+
599
+
600
+ </div>
601
+ </div>
602
+ <div class="tags">
603
+
604
+
605
+ </div><table class="source_code">
606
+ <tr>
607
+ <td>
608
+ <pre class="lines">
609
+
610
+
611
+ 4
612
+ 5
613
+ 6</pre>
614
+ </td>
615
+ <td>
616
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 4</span>
617
+
618
+ <span class='kw'>def</span> <span class='id identifier rubyid_cadera'>cadera</span>
619
+ <span class='ivar'>@cadera</span>
620
+ <span class='kw'>end</span></pre>
621
+ </td>
622
+ </tr>
623
+ </table>
624
+ </div>
625
+
626
+
627
+ <span id=""></span>
628
+ <div class="method_details ">
629
+ <h3 class="signature " id="cintura-instance_method">
630
+
631
+ #<strong>cintura</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
632
+
633
+
634
+
635
+
636
+
637
+ </h3><div class="docstring">
638
+ <div class="discussion">
639
+
640
+ <p>Returns the value of attribute cintura</p>
641
+
642
+
643
+ </div>
644
+ </div>
645
+ <div class="tags">
646
+
647
+
648
+ </div><table class="source_code">
649
+ <tr>
650
+ <td>
651
+ <pre class="lines">
652
+
653
+
654
+ 4
655
+ 5
656
+ 6</pre>
657
+ </td>
658
+ <td>
659
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 4</span>
660
+
661
+ <span class='kw'>def</span> <span class='id identifier rubyid_cintura'>cintura</span>
662
+ <span class='ivar'>@cintura</span>
663
+ <span class='kw'>end</span></pre>
664
+ </td>
665
+ </tr>
666
+ </table>
667
+ </div>
668
+
669
+
670
+ <span id=""></span>
671
+ <div class="method_details ">
672
+ <h3 class="signature " id="edad-instance_method">
673
+
674
+ #<strong>edad</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
675
+
676
+
677
+
678
+
679
+
680
+ </h3><div class="docstring">
681
+ <div class="discussion">
682
+
683
+ <p>Returns the value of attribute edad</p>
684
+
685
+
686
+ </div>
687
+ </div>
688
+ <div class="tags">
689
+
690
+
691
+ </div><table class="source_code">
692
+ <tr>
693
+ <td>
694
+ <pre class="lines">
695
+
696
+
697
+ 4
698
+ 5
699
+ 6</pre>
700
+ </td>
701
+ <td>
702
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 4</span>
703
+
704
+ <span class='kw'>def</span> <span class='id identifier rubyid_edad'>edad</span>
705
+ <span class='ivar'>@edad</span>
706
+ <span class='kw'>end</span></pre>
707
+ </td>
708
+ </tr>
709
+ </table>
710
+ </div>
711
+
712
+
713
+ <span id=""></span>
714
+ <div class="method_details ">
715
+ <h3 class="signature " id="peso-instance_method">
716
+
717
+ #<strong>peso</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
718
+
719
+
720
+
721
+
722
+
723
+ </h3><div class="docstring">
724
+ <div class="discussion">
725
+
726
+ <p>Returns the value of attribute peso</p>
727
+
728
+
729
+ </div>
730
+ </div>
731
+ <div class="tags">
732
+
733
+
734
+ </div><table class="source_code">
735
+ <tr>
736
+ <td>
737
+ <pre class="lines">
738
+
739
+
740
+ 4
741
+ 5
742
+ 6</pre>
743
+ </td>
744
+ <td>
745
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 4</span>
746
+
747
+ <span class='kw'>def</span> <span class='id identifier rubyid_peso'>peso</span>
748
+ <span class='ivar'>@peso</span>
749
+ <span class='kw'>end</span></pre>
750
+ </td>
751
+ </tr>
752
+ </table>
753
+ </div>
754
+
755
+
756
+ <span id=""></span>
757
+ <div class="method_details ">
758
+ <h3 class="signature " id="sexo-instance_method">
759
+
760
+ #<strong>sexo</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
761
+
762
+
763
+
764
+
765
+
766
+ </h3><div class="docstring">
767
+ <div class="discussion">
768
+
769
+ <p>Returns the value of attribute sexo</p>
770
+
771
+
772
+ </div>
773
+ </div>
774
+ <div class="tags">
775
+
776
+
777
+ </div><table class="source_code">
778
+ <tr>
779
+ <td>
780
+ <pre class="lines">
781
+
782
+
783
+ 4
784
+ 5
785
+ 6</pre>
786
+ </td>
787
+ <td>
788
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 4</span>
789
+
790
+ <span class='kw'>def</span> <span class='id identifier rubyid_sexo'>sexo</span>
791
+ <span class='ivar'>@sexo</span>
792
+ <span class='kw'>end</span></pre>
793
+ </td>
794
+ </tr>
795
+ </table>
796
+ </div>
797
+
798
+
799
+ <span id=""></span>
800
+ <div class="method_details ">
801
+ <h3 class="signature " id="talla-instance_method">
802
+
803
+ #<strong>talla</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
804
+
805
+
806
+
807
+
808
+
809
+ </h3><div class="docstring">
810
+ <div class="discussion">
811
+
812
+ <p>Returns the value of attribute talla</p>
813
+
814
+
815
+ </div>
816
+ </div>
817
+ <div class="tags">
818
+
819
+
820
+ </div><table class="source_code">
821
+ <tr>
822
+ <td>
823
+ <pre class="lines">
824
+
825
+
826
+ 4
827
+ 5
828
+ 6</pre>
829
+ </td>
830
+ <td>
831
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 4</span>
832
+
833
+ <span class='kw'>def</span> <span class='id identifier rubyid_talla'>talla</span>
834
+ <span class='ivar'>@talla</span>
835
+ <span class='kw'>end</span></pre>
836
+ </td>
837
+ </tr>
838
+ </table>
839
+ </div>
840
+
841
+ </div>
842
+
843
+
844
+ <div id="instance_method_details" class="method_details_list">
845
+ <h2>Instance Method Details</h2>
846
+
847
+
848
+ <div class="method_details first">
849
+ <h3 class="signature first" id="av_cadera-instance_method">
850
+
851
+ #<strong>av_cadera</strong> &#x21d2; <tt>Object</tt>
852
+
853
+
854
+
855
+
856
+
857
+ </h3><table class="source_code">
858
+ <tr>
859
+ <td>
860
+ <pre class="lines">
861
+
862
+
863
+ 25
864
+ 26
865
+ 27</pre>
866
+ </td>
867
+ <td>
868
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 25</span>
869
+
870
+ <span class='kw'>def</span> <span class='id identifier rubyid_av_cadera'>av_cadera</span>
871
+ <span class='lparen'>(</span><span class='ivar'>@cadera</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='op'>+</span><span class='ivar'>@cadera</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='op'>/</span><span class='int'>2</span>
872
+ <span class='kw'>end</span></pre>
873
+ </td>
874
+ </tr>
875
+ </table>
876
+ </div>
877
+
878
+ <div class="method_details ">
879
+ <h3 class="signature " id="av_cintura-instance_method">
880
+
881
+ #<strong>av_cintura</strong> &#x21d2; <tt>Object</tt>
882
+
883
+
884
+
885
+
886
+
887
+ </h3><table class="source_code">
888
+ <tr>
889
+ <td>
890
+ <pre class="lines">
891
+
892
+
893
+ 21
894
+ 22
895
+ 23</pre>
896
+ </td>
897
+ <td>
898
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 21</span>
899
+
900
+ <span class='kw'>def</span> <span class='id identifier rubyid_av_cintura'>av_cintura</span>
901
+ <span class='lparen'>(</span><span class='ivar'>@cintura</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='op'>+</span><span class='ivar'>@cintura</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='op'>/</span><span class='int'>2</span>
902
+ <span class='kw'>end</span></pre>
903
+ </td>
904
+ </tr>
905
+ </table>
906
+ </div>
907
+
908
+ <div class="method_details ">
909
+ <h3 class="signature " id="grasa-instance_method">
910
+
911
+ #<strong>grasa</strong> &#x21d2; <tt>Object</tt>
912
+
913
+
914
+
915
+
916
+
917
+ </h3><table class="source_code">
918
+ <tr>
919
+ <td>
920
+ <pre class="lines">
921
+
922
+
923
+ 50
924
+ 51
925
+ 52</pre>
926
+ </td>
927
+ <td>
928
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 50</span>
929
+
930
+ <span class='kw'>def</span> <span class='id identifier rubyid_grasa'>grasa</span>
931
+ <span class='lparen'>(</span><span class='float'>1.2</span> <span class='op'>*</span> <span class='id identifier rubyid_imc'>imc</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span><span class='float'>0.23</span> <span class='op'>*</span> <span class='ivar'>@edad</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='float'>10.8</span> <span class='op'>*</span> <span class='ivar'>@sexo</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='float'>5.4</span>
932
+ <span class='kw'>end</span></pre>
933
+ </td>
934
+ </tr>
935
+ </table>
936
+ </div>
937
+
938
+ <div class="method_details ">
939
+ <h3 class="signature " id="imc-instance_method">
940
+
941
+ #<strong>imc</strong> &#x21d2; <tt>Object</tt>
942
+
943
+
944
+
945
+
946
+
947
+ </h3><table class="source_code">
948
+ <tr>
949
+ <td>
950
+ <pre class="lines">
951
+
952
+
953
+ 29
954
+ 30
955
+ 31</pre>
956
+ </td>
957
+ <td>
958
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 29</span>
959
+
960
+ <span class='kw'>def</span> <span class='id identifier rubyid_imc'>imc</span>
961
+ <span class='ivar'>@peso</span><span class='op'>/</span><span class='lparen'>(</span><span class='ivar'>@talla</span> <span class='op'>*</span> <span class='ivar'>@talla</span><span class='rparen'>)</span>
962
+ <span class='kw'>end</span></pre>
963
+ </td>
964
+ </tr>
965
+ </table>
966
+ </div>
967
+
968
+ <div class="method_details ">
969
+ <h3 class="signature " id="imc_table-instance_method">
970
+
971
+ #<strong>imc_table</strong> &#x21d2; <tt>Object</tt>
972
+
973
+
974
+
975
+
976
+
977
+ </h3><table class="source_code">
978
+ <tr>
979
+ <td>
980
+ <pre class="lines">
981
+
982
+
983
+ 33
984
+ 34
985
+ 35
986
+ 36
987
+ 37
988
+ 38
989
+ 39
990
+ 40
991
+ 41
992
+ 42
993
+ 43
994
+ 44
995
+ 45
996
+ 46
997
+ 47
998
+ 48</pre>
999
+ </td>
1000
+ <td>
1001
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 33</span>
1002
+
1003
+ <span class='kw'>def</span> <span class='id identifier rubyid_imc_table'>imc_table</span>
1004
+ <span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>=</span> <span class='ivar'>@peso</span><span class='op'>/</span><span class='lparen'>(</span><span class='ivar'>@talla</span> <span class='op'>*</span> <span class='ivar'>@talla</span><span class='rparen'>)</span>
1005
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&lt;</span> <span class='float'>18.5</span><span class='rparen'>)</span>
1006
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Delgadez</span><span class='tstring_end'>&quot;</span></span>
1007
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&gt;</span> <span class='float'>18.5</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&lt;</span> <span class='float'>24.9</span><span class='rparen'>)</span>
1008
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Adecuado</span><span class='tstring_end'>&quot;</span></span>
1009
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&gt;</span> <span class='int'>25</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&lt;</span> <span class='float'>29.9</span><span class='rparen'>)</span>
1010
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Sobrepeso</span><span class='tstring_end'>&quot;</span></span>
1011
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&gt;</span> <span class='int'>30</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&lt;</span> <span class='float'>34.9</span><span class='rparen'>)</span>
1012
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Obesidad Grado 1</span><span class='tstring_end'>&quot;</span></span>
1013
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&gt;</span> <span class='int'>35</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&lt;</span> <span class='float'>39.9</span><span class='rparen'>)</span>
1014
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Obesidad Grado 2</span><span class='tstring_end'>&quot;</span></span>
1015
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_imc'>r_imc</span> <span class='op'>&gt;</span> <span class='int'>40</span><span class='rparen'>)</span>
1016
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Obesidad Grado 3</span><span class='tstring_end'>&quot;</span></span>
1017
+ <span class='kw'>end</span>
1018
+ <span class='kw'>end</span></pre>
1019
+ </td>
1020
+ </tr>
1021
+ </table>
1022
+ </div>
1023
+
1024
+ <div class="method_details ">
1025
+ <h3 class="signature " id="rcc-instance_method">
1026
+
1027
+ #<strong>rcc</strong> &#x21d2; <tt>Object</tt>
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+ </h3><table class="source_code">
1034
+ <tr>
1035
+ <td>
1036
+ <pre class="lines">
1037
+
1038
+
1039
+ 54
1040
+ 55
1041
+ 56</pre>
1042
+ </td>
1043
+ <td>
1044
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 54</span>
1045
+
1046
+ <span class='kw'>def</span> <span class='id identifier rubyid_rcc'>rcc</span>
1047
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_av_cintura'>av_cintura</span> <span class='op'>/</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_av_cadera'>av_cadera</span>
1048
+ <span class='kw'>end</span></pre>
1049
+ </td>
1050
+ </tr>
1051
+ </table>
1052
+ </div>
1053
+
1054
+ <div class="method_details ">
1055
+ <h3 class="signature " id="rcc_table-instance_method">
1056
+
1057
+ #<strong>rcc_table</strong> &#x21d2; <tt>Object</tt>
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+ </h3><table class="source_code">
1064
+ <tr>
1065
+ <td>
1066
+ <pre class="lines">
1067
+
1068
+
1069
+ 58
1070
+ 59
1071
+ 60
1072
+ 61
1073
+ 62
1074
+ 63
1075
+ 64
1076
+ 65
1077
+ 66
1078
+ 67
1079
+ 68
1080
+ 69
1081
+ 70
1082
+ 71
1083
+ 72
1084
+ 73
1085
+ 74
1086
+ 75</pre>
1087
+ </td>
1088
+ <td>
1089
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 58</span>
1090
+
1091
+ <span class='kw'>def</span> <span class='id identifier rubyid_rcc_table'>rcc_table</span>
1092
+ <span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_av_cintura'>av_cintura</span> <span class='op'>/</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_av_cadera'>av_cadera</span>
1093
+ <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&gt;</span> <span class='float'>0.83</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&lt;=</span> <span class='float'>0.88</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@sexo</span><span class='op'>==</span><span class='int'>1</span><span class='rparen'>)</span>
1094
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Bajo</span><span class='tstring_end'>&quot;</span></span>
1095
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&gt;</span> <span class='float'>0.88</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&lt;=</span> <span class='float'>0.95</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@sexo</span><span class='op'>==</span><span class='int'>1</span><span class='rparen'>)</span>
1096
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Moderado</span><span class='tstring_end'>&quot;</span></span>
1097
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&gt;</span> <span class='float'>0.95</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&lt;=</span> <span class='float'>1.01</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@sexo</span><span class='op'>==</span><span class='int'>1</span><span class='rparen'>)</span>
1098
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Alto</span><span class='tstring_end'>&quot;</span></span>
1099
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&gt;</span> <span class='float'>1.01</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@sexo</span><span class='op'>==</span><span class='int'>1</span><span class='rparen'>)</span>
1100
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Muy alto</span><span class='tstring_end'>&quot;</span></span>
1101
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&gt;</span> <span class='float'>0.72</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&lt;=</span> <span class='float'>0.75</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@sexo</span><span class='op'>==</span><span class='int'>0</span><span class='rparen'>)</span>
1102
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Bajo</span><span class='tstring_end'>&quot;</span></span>
1103
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&gt;</span> <span class='float'>0.75</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&lt;=</span> <span class='float'>0.82</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@sexo</span><span class='op'>==</span><span class='int'>0</span><span class='rparen'>)</span>
1104
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Moderado</span><span class='tstring_end'>&quot;</span></span>
1105
+ <span class='kw'>elsif</span> <span class='lparen'>(</span><span class='id identifier rubyid_r_rcc'>r_rcc</span> <span class='op'>&gt;</span> <span class='float'>0.82</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@sexo</span><span class='op'>==</span><span class='int'>0</span><span class='rparen'>)</span>
1106
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Alto</span><span class='tstring_end'>&quot;</span></span>
1107
+ <span class='kw'>end</span>
1108
+ <span class='kw'>end</span></pre>
1109
+ </td>
1110
+ </tr>
1111
+ </table>
1112
+ </div>
1113
+
1114
+ <div class="method_details ">
1115
+ <h3 class="signature " id="to_s-instance_method">
1116
+
1117
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+ </h3><table class="source_code">
1124
+ <tr>
1125
+ <td>
1126
+ <pre class="lines">
1127
+
1128
+
1129
+ 77
1130
+ 78
1131
+ 79</pre>
1132
+ </td>
1133
+ <td>
1134
+ <pre class="code"><span class="info file"># File 'lib/nutritag/anthro_data.rb', line 77</span>
1135
+
1136
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1137
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@peso</span><span class='embexpr_end'>}</span><span class='tstring_content'>, </span><span class='embexpr_beg'>#{</span><span class='ivar'>@talla</span><span class='embexpr_end'>}</span><span class='tstring_content'>, </span><span class='embexpr_beg'>#{</span><span class='ivar'>@edad</span><span class='embexpr_end'>}</span><span class='tstring_content'>, </span><span class='embexpr_beg'>#{</span><span class='ivar'>@sexo</span><span class='embexpr_end'>}</span><span class='tstring_content'>, </span><span class='embexpr_beg'>#{</span><span class='ivar'>@cintura</span><span class='embexpr_end'>}</span><span class='tstring_content'>, </span><span class='embexpr_beg'>#{</span><span class='ivar'>@cadera</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1138
+ <span class='kw'>end</span></pre>
1139
+ </td>
1140
+ </tr>
1141
+ </table>
1142
+ </div>
1143
+
1144
+ </div>
1145
+
1146
+ </div>
1147
+
1148
+ <div id="footer">
1149
+ Generated on Tue Nov 27 02:51:58 2018 by
1150
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1151
+ 0.9.16 (ruby-2.5.1).
1152
+ </div>
1153
+
1154
+ </div>
1155
+ </body>
1156
+ </html>