Ruby对象属于实验室v-000

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

网友评论