alu0101166858_plato 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Guardfile +82 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/Alimentos.html +420 -0
- data/docs/AlimentosCarbohidratos.html +102 -0
- data/docs/AlimentosGrasos.html +102 -0
- data/docs/Bebidas.html +102 -0
- data/docs/CarnesDerivados.html +102 -0
- data/docs/Frutas.html +102 -0
- data/docs/Gemfile.html +99 -0
- data/docs/Gemfile_lock.html +176 -0
- data/docs/Guardfile.html +176 -0
- data/docs/HuevosLacteosHelados.html +104 -0
- data/docs/List.html +459 -0
- data/docs/Node.html +203 -0
- data/docs/Object.html +116 -0
- data/docs/PescadosMariscos.html +102 -0
- data/docs/Prct06.html +109 -0
- data/docs/README_md.html +150 -0
- data/docs/Rakefile.html +97 -0
- data/docs/VerdurasHortalizas.html +102 -0
- data/docs/bin/setup.html +97 -0
- data/docs/created.rid +15 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/rdoc.css +590 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +125 -0
- data/docs/js/darkfish.js +161 -0
- data/docs/js/jquery.js +4 -0
- data/docs/js/navigation.js +142 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +109 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +228 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/prct06_gemspec.html +130 -0
- data/docs/table_of_contents.html +203 -0
- data/lib/prct06.rb +5 -0
- data/lib/prct06/aibc.rb +62 -0
- data/lib/prct06/alimentos.rb +53 -0
- data/lib/prct06/list.rb +104 -0
- data/lib/prct06/receta.rb +134 -0
- data/lib/prct06/sort.rb +38 -0
- data/lib/prct06/version.rb +3 -0
- data/prct06.gemspec +29 -0
- metadata +209 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ac16cdfefb056b72258232651863ac694eab5879
|
4
|
+
data.tar.gz: cf11a392323684382cd55554d82dab50ce9f7bac
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d6398adf92ab1ee300aa9367ba62d40fc397d8a0d063f9854fb2139a7cd7f210caefbfba56190d60a55a056f4c6c0a8b3ff80e9e54b407e2dffabe2b9a406c7f
|
7
|
+
data.tar.gz: 22a7fefdbfe1a2e1fa4573dae7ac5397446730890731438f86bee9755056507d0e91a6dbee511fe0c4a1aaddd6b51631653bda790b41bd202d49a6d656ec9d4c
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -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.exists?(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
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Prct06
|
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/prct06`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'prct06'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install prct06
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/prct06.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "prct06"
|
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__)
|
data/bin/setup
ADDED
data/docs/Alimentos.html
ADDED
@@ -0,0 +1,420 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class Alimentos - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link"><a href="Object.html">Object</a>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
<div id="includes-section" class="nav-section">
|
66
|
+
<h3>Included Modules</h3>
|
67
|
+
|
68
|
+
<ul class="link-list">
|
69
|
+
|
70
|
+
|
71
|
+
<li><span class="include">Comparable</span>
|
72
|
+
|
73
|
+
|
74
|
+
</ul>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
|
78
|
+
<!-- Method Quickref -->
|
79
|
+
<div id="method-list-section" class="nav-section">
|
80
|
+
<h3>Methods</h3>
|
81
|
+
|
82
|
+
<ul class="link-list" role="directory">
|
83
|
+
|
84
|
+
<li ><a href="#method-c-new">::new</a>
|
85
|
+
|
86
|
+
<li ><a href="#method-i-3C-3D-3E">#<=></a>
|
87
|
+
|
88
|
+
<li ><a href="#method-i-energy">#energy</a>
|
89
|
+
|
90
|
+
<li ><a href="#method-i-format">#format</a>
|
91
|
+
|
92
|
+
<li ><a href="#method-i-glucidos">#glucidos</a>
|
93
|
+
|
94
|
+
<li ><a href="#method-i-lipidos">#lipidos</a>
|
95
|
+
|
96
|
+
<li ><a href="#method-i-name">#name</a>
|
97
|
+
|
98
|
+
<li ><a href="#method-i-proteinas">#proteinas</a>
|
99
|
+
|
100
|
+
</ul>
|
101
|
+
</div>
|
102
|
+
|
103
|
+
</div>
|
104
|
+
</nav>
|
105
|
+
|
106
|
+
<main role="main" aria-labelledby="class-Alimentos">
|
107
|
+
<h1 id="class-Alimentos" class="class">
|
108
|
+
class Alimentos
|
109
|
+
</h1>
|
110
|
+
|
111
|
+
<section class="description">
|
112
|
+
|
113
|
+
</section>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
129
|
+
<header>
|
130
|
+
<h3>Public Class Methods</h3>
|
131
|
+
</header>
|
132
|
+
|
133
|
+
|
134
|
+
<div id="method-c-new" class="method-detail ">
|
135
|
+
|
136
|
+
<div class="method-heading">
|
137
|
+
<span class="method-name">new</span><span
|
138
|
+
class="method-args">(nombre, proteinas, glucidos, lipidos)</span>
|
139
|
+
|
140
|
+
<span class="method-click-advice">click to toggle source</span>
|
141
|
+
|
142
|
+
</div>
|
143
|
+
|
144
|
+
|
145
|
+
<div class="method-description">
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
<div class="method-source-code" id="new-source">
|
153
|
+
<pre><span class="ruby-comment"># File lib/prct06/alimentos.rb, line 7</span>
|
154
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">nombre</span>, <span class="ruby-identifier">proteinas</span>, <span class="ruby-identifier">glucidos</span>, <span class="ruby-identifier">lipidos</span>)
|
155
|
+
<span class="ruby-ivar">@nombre</span> = <span class="ruby-identifier">nombre</span>
|
156
|
+
<span class="ruby-ivar">@proteinas</span> = <span class="ruby-identifier">proteinas</span>
|
157
|
+
<span class="ruby-ivar">@glucidos</span> = <span class="ruby-identifier">glucidos</span>
|
158
|
+
<span class="ruby-ivar">@lipidos</span> = <span class="ruby-identifier">lipidos</span>
|
159
|
+
<span class="ruby-keyword">end</span></pre>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
</div>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
</div>
|
168
|
+
|
169
|
+
|
170
|
+
</section>
|
171
|
+
|
172
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
173
|
+
<header>
|
174
|
+
<h3>Public Instance Methods</h3>
|
175
|
+
</header>
|
176
|
+
|
177
|
+
|
178
|
+
<div id="method-i-3C-3D-3E" class="method-detail ">
|
179
|
+
|
180
|
+
<div class="method-heading">
|
181
|
+
<span class="method-name"><=></span><span
|
182
|
+
class="method-args">(anOther)</span>
|
183
|
+
|
184
|
+
<span class="method-click-advice">click to toggle source</span>
|
185
|
+
|
186
|
+
</div>
|
187
|
+
|
188
|
+
|
189
|
+
<div class="method-description">
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<div class="method-source-code" id="3C-3D-3E-source">
|
197
|
+
<pre><span class="ruby-comment"># File lib/prct06/alimentos.rb, line 3</span>
|
198
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">anOther</span>)
|
199
|
+
<span class="ruby-identifier">energy</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">anOther</span>.<span class="ruby-identifier">energy</span>
|
200
|
+
<span class="ruby-keyword">end</span></pre>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
<div id="method-i-energy" class="method-detail ">
|
212
|
+
|
213
|
+
<div class="method-heading">
|
214
|
+
<span class="method-name">energy</span><span
|
215
|
+
class="method-args">()</span>
|
216
|
+
|
217
|
+
<span class="method-click-advice">click to toggle source</span>
|
218
|
+
|
219
|
+
</div>
|
220
|
+
|
221
|
+
|
222
|
+
<div class="method-description">
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
<div class="method-source-code" id="energy-source">
|
230
|
+
<pre><span class="ruby-comment"># File lib/prct06/alimentos.rb, line 28</span>
|
231
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">energy</span>
|
232
|
+
<span class="ruby-ivar">@proteinas</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@glucidos</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@lipidos</span> <span class="ruby-operator">*</span><span class="ruby-value">9</span>
|
233
|
+
<span class="ruby-keyword">end</span></pre>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
</div>
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
</div>
|
242
|
+
|
243
|
+
|
244
|
+
<div id="method-i-format" class="method-detail ">
|
245
|
+
|
246
|
+
<div class="method-heading">
|
247
|
+
<span class="method-name">format</span><span
|
248
|
+
class="method-args">()</span>
|
249
|
+
|
250
|
+
<span class="method-click-advice">click to toggle source</span>
|
251
|
+
|
252
|
+
</div>
|
253
|
+
|
254
|
+
|
255
|
+
<div class="method-description">
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
<div class="method-source-code" id="format-source">
|
263
|
+
<pre><span class="ruby-comment"># File lib/prct06/alimentos.rb, line 25</span>
|
264
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">format</span>
|
265
|
+
<span class="ruby-node">"(Alimento: #{@nombre}, proteinas: #{@proteinas}, glucidos: #{@glucidos}, lipidos: #{@lipidos})"</span>
|
266
|
+
<span class="ruby-keyword">end</span></pre>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
</div>
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
</div>
|
275
|
+
|
276
|
+
|
277
|
+
<div id="method-i-glucidos" class="method-detail ">
|
278
|
+
|
279
|
+
<div class="method-heading">
|
280
|
+
<span class="method-name">glucidos</span><span
|
281
|
+
class="method-args">()</span>
|
282
|
+
|
283
|
+
<span class="method-click-advice">click to toggle source</span>
|
284
|
+
|
285
|
+
</div>
|
286
|
+
|
287
|
+
|
288
|
+
<div class="method-description">
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<div class="method-source-code" id="glucidos-source">
|
296
|
+
<pre><span class="ruby-comment"># File lib/prct06/alimentos.rb, line 19</span>
|
297
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">glucidos</span>
|
298
|
+
<span class="ruby-ivar">@glucidos</span>
|
299
|
+
<span class="ruby-keyword">end</span></pre>
|
300
|
+
</div>
|
301
|
+
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</div>
|
308
|
+
|
309
|
+
|
310
|
+
<div id="method-i-lipidos" class="method-detail ">
|
311
|
+
|
312
|
+
<div class="method-heading">
|
313
|
+
<span class="method-name">lipidos</span><span
|
314
|
+
class="method-args">()</span>
|
315
|
+
|
316
|
+
<span class="method-click-advice">click to toggle source</span>
|
317
|
+
|
318
|
+
</div>
|
319
|
+
|
320
|
+
|
321
|
+
<div class="method-description">
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
<div class="method-source-code" id="lipidos-source">
|
329
|
+
<pre><span class="ruby-comment"># File lib/prct06/alimentos.rb, line 22</span>
|
330
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">lipidos</span>
|
331
|
+
<span class="ruby-ivar">@lipidos</span>
|
332
|
+
<span class="ruby-keyword">end</span></pre>
|
333
|
+
</div>
|
334
|
+
|
335
|
+
</div>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
</div>
|
341
|
+
|
342
|
+
|
343
|
+
<div id="method-i-name" class="method-detail ">
|
344
|
+
|
345
|
+
<div class="method-heading">
|
346
|
+
<span class="method-name">name</span><span
|
347
|
+
class="method-args">()</span>
|
348
|
+
|
349
|
+
<span class="method-click-advice">click to toggle source</span>
|
350
|
+
|
351
|
+
</div>
|
352
|
+
|
353
|
+
|
354
|
+
<div class="method-description">
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
<div class="method-source-code" id="name-source">
|
362
|
+
<pre><span class="ruby-comment"># File lib/prct06/alimentos.rb, line 13</span>
|
363
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">name</span>
|
364
|
+
<span class="ruby-ivar">@nombre</span>
|
365
|
+
<span class="ruby-keyword">end</span></pre>
|
366
|
+
</div>
|
367
|
+
|
368
|
+
</div>
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
</div>
|
374
|
+
|
375
|
+
|
376
|
+
<div id="method-i-proteinas" class="method-detail ">
|
377
|
+
|
378
|
+
<div class="method-heading">
|
379
|
+
<span class="method-name">proteinas</span><span
|
380
|
+
class="method-args">()</span>
|
381
|
+
|
382
|
+
<span class="method-click-advice">click to toggle source</span>
|
383
|
+
|
384
|
+
</div>
|
385
|
+
|
386
|
+
|
387
|
+
<div class="method-description">
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
<div class="method-source-code" id="proteinas-source">
|
395
|
+
<pre><span class="ruby-comment"># File lib/prct06/alimentos.rb, line 16</span>
|
396
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">proteinas</span>
|
397
|
+
<span class="ruby-ivar">@proteinas</span>
|
398
|
+
<span class="ruby-keyword">end</span></pre>
|
399
|
+
</div>
|
400
|
+
|
401
|
+
</div>
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
</div>
|
407
|
+
|
408
|
+
|
409
|
+
</section>
|
410
|
+
|
411
|
+
</section>
|
412
|
+
</main>
|
413
|
+
|
414
|
+
|
415
|
+
<footer id="validator-badges" role="contentinfo">
|
416
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
417
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
418
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
419
|
+
</footer>
|
420
|
+
|