Name
Guillermo Hernández González
alu0101121529@ull.edu.es
Grupo
103 (13:00-14:00)
Resumen
Se nos piden crear listas de dietas, formadas por diferentes platos y comparar las dietas usando los módulos comparable y enumerable. Para hacer esto también necesitamos hacer una clase BasicPlato y otra Plato para meterlos en las listas.
Árbol de directorios
.
├── CODE_OF_CONDUCT.md
├── Gemfile
├── Gemfile.lock
├── Guardfile
├── LICENSE.txt
├── README.md
├── Rakefile
├── bin
│ ├── console
│ └── setup
├── lib
│ ├── p6
│ │ ├── basicplato.rb
│ │ ├── list.rb
│ │ ├── p6.rb
│ │ └── version.rb
│ └── p6.rb
├── p6.gemspec
├── pkg
│ └── p6-0.1.0.gem
├── spec
│ ├── p6_spec.rb
│ └── spec_helper.rb
└── tmp
Installation
Add this line to your application's Gemfile:
gem 'p6'
And then execute:
$ bundle
Or install it yourself as:
$ gem install p6
Development
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.
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.
Contributing
Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the P6 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the of conduct[https://github.com/[USERNAME]/p6/blob/master/CODE_OF_CONDUCT.md].