ruby-objects-belong-to-lab-online-web-sp-000

时间:2021-03-19 20:08:11
【文件属性】:
文件名称:ruby-objects-belong-to-lab-online-web-sp-000
文件大小:9KB
文件格式:ZIP
更新时间:2021-03-19 20:08:11
Ruby Ruby对象属于实验室 目标 编写通过“属于”关系相关的类。 指示 在本实验中,您将编写一个Song and Artist类。一首歌应该属于艺术家。您还将编码Post and Author类。帖子应属于作者。 艺术家应该有个名字。 歌曲应有标题,并属于艺术家。一首歌应该能够告诉您其歌手的名字: song . artist . name # => "Beyonce" 帖子应有标题,并属于作者。帖子应该能够告诉您作者的名字: post . author . name # => "Hillary" 在Learn.co上查看,并开始免费学习编码。
【文件预览】:
ruby-objects-belong-to-lab-online-web-sp-000-master
----.learn(82B)
----lib()
--------song.rb(0B)
--------post.rb(0B)
--------artist.rb(0B)
--------author.rb(0B)
----Gemfile(90B)
----spec()
--------song_spec.rb(473B)
--------author_spec.rb(173B)
--------spec_helper.rb(4KB)
--------artist_spec.rb(169B)
--------post_spec.rb(491B)
----CONTRIBUTING.md(2KB)
----LICENSE.md(1KB)
----README.md(878B)
----.rspec(53B)
----Gemfile.lock(626B)
----.gitignore(642B)

网友评论