New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
「Introduction Ruby」を翻訳 #677
「Introduction Ruby」を翻訳 #677
Conversation
_pages/ruby-intro.md
Outdated
|
||
{% highlight ruby %} | ||
def say_hello_without_parameter | ||
"Hello world!" | ||
end | ||
|
||
# Both ways of calling the method will work | ||
# どちらの方法でもメソッドを呼び出すことはできます |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
どちらの方法でもメソッドを呼び出すことはできます
「呼び出すことは」よりも「呼び出すことが」の方が自然かなと感じました👀
_pages/ruby-intro.md
Outdated
|
||
In the example below we have a class called `Greeter`. To use this class, we can initialize it with the `new` method on the class. We tell Ruby we want to call a method on the class by using the dot notation: `object.method`. In the example below that is the method `new`. | ||
以下の例には、 `Greeter`というクラスがあります。このクラスを使用するには、クラスの`new`メソッドを使用して初期化します。`Object.method`というドット表記を使用して、クラスのメソッドを呼び出したいことをRubyに伝えます。以下の例では、`new`メソッドがそう呼び出されています。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
以下の例では、
new
メソッドがそう呼び出されています。
「そう」が指す対象が文章だと伝わりにくそうだなと感じました。
例えば以下のような説明はいかがでしょうか?
- 以下の例では、
new
というメソッドを呼び出しています。
_pages/ruby-intro.md
Outdated
|
||
{% highlight ruby %} | ||
puts "Hello world".length | ||
# 11 | ||
{% endhighlight %} | ||
|
||
Using the dot notation you tell Ruby you want to call a method on the value, in this case `length`. | ||
ドット表記を使用して、Rubyに値に対してメソッドを呼び出すことを伝えます この場合は`length`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この場合は
length
。
文末に「です」を加えてもよさそうだなと思います👍
@sontixyou |
@maimux2x |
_pages/ruby-intro.md
Outdated
|
||
Create a new file on your laptop–anywhere will do for now, just remember where–and name it `app.rb`. The `.rb` extension tells you, your (future) team and the computer what kind of file it is: a Ruby program. | ||
PC上に新しいファイルを作成します。ファイル名は`app.rb`と名前をつけます。作成するディレクトリはどこでも大丈夫ですが、作成した場所を覚えておいてください。拡張子の`.rb`は、あなた、あなたの(将来の)チーム、およびコンピュータに、それがどのような種類のファイルであるかを伝えます。つまり、`app.rb`はRubyプログラムです。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
他の箇所が「コンピューター」と記載しているため、統一をお願いしてもよろしいでしょうか?
@sontixyou |
全然大丈夫です!修正完了です!! |
@sontixyou |
本番にマージしたため、該当ページのご確認とissueのcloseをお手隙の際によろしくお願いいたします🙏 |
「Introduction Ruby」を翻訳しました。
fix: #665