Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions translations/zh/try_ruby_520.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ load: prev;blurb2=Blurb.new :confused, "I can not believe Mt. Hood was stolen!
但是现在,我们来回顾一下。

### 类
Everything in Ruby is some kind of object. Classes explain objects, how a certain object works.
For example, you made a few Blurb<sup>TM</sup> objects and these objects are explained in the Blurb
class.
In other words: you call them Blurb objects.
You can use classes to (kinda) model real life objects.
在Ruby中,一切皆对象。类会解释一个特定的对象是怎么工作的。
比如,你创建了几个Blurb<sup>TM</sup>对象并且在Blurb<sup>TM</sup>类中对其进行了解释。
换句话说:你把他们叫做Blurb对象。
Expand Down
2 changes: 1 addition & 1 deletion translations/zh/try_ruby_540.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ load: prev;class Blurbalizer;attr_reader :title;def initialize(title);@title=t
是时候使用Blurbalizer<sup>TM</sup>了。我已经预载了一些Blurb,你可以自己创建你的。

我们不直接创建Blurbs<sup>TM</sup>,而是通过Blurbalizer<sup>TM</sup>类中的
add\_a\_blurb __方法__ 。这样我们可以确保所有的Blurbs<sup>TM</sup被储存在
add\_a\_blurb __方法__ 。这样我们可以确保所有的Blurbs<sup>TM</sup>被储存在
myapp 对象中。

myapp.add_a_blurb :moody, "Add Blurb here"
Expand Down