diff --git a/translations/zh/try_ruby_520.md b/translations/zh/try_ruby_520.md index e8a4ae69..82bc0624 100644 --- a/translations/zh/try_ruby_520.md +++ b/translations/zh/try_ruby_520.md @@ -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 BlurbTM 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中,一切皆对象。类会解释一个特定的对象是怎么工作的。 比如,你创建了几个BlurbTM对象并且在BlurbTM类中对其进行了解释。 换句话说:你把他们叫做Blurb对象。 diff --git a/translations/zh/try_ruby_540.md b/translations/zh/try_ruby_540.md index 0a53b050..6e7c420c 100644 --- a/translations/zh/try_ruby_540.md +++ b/translations/zh/try_ruby_540.md @@ -15,7 +15,7 @@ load: prev;class Blurbalizer;attr_reader :title;def initialize(title);@title=t 是时候使用BlurbalizerTM了。我已经预载了一些Blurb,你可以自己创建你的。 我们不直接创建BlurbsTM,而是通过BlurbalizerTM类中的 -add\_a\_blurb __方法__ 。这样我们可以确保所有的BlurbsTMTM被储存在 myapp 对象中。 myapp.add_a_blurb :moody, "Add Blurb here"