Skip to content
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

Merged
merged 5 commits into from May 24, 2023

Conversation

sontixyou
Copy link
Contributor

「Introduction Ruby」を翻訳しました。

fix: #665

@sontixyou
Copy link
Contributor Author

localhost_4000_ruby-intro


{% highlight ruby %}
def say_hello_without_parameter
"Hello world!"
end

# Both ways of calling the method will work
# どちらの方法でもメソッドを呼び出すことはできます
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

どちらの方法でもメソッドを呼び出すことはできます

「呼び出すことは」よりも「呼び出すことが」の方が自然かなと感じました👀


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`メソッドがそう呼び出されています。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

以下の例では、newメソッドがそう呼び出されています。

「そう」が指す対象が文章だと伝わりにくそうだなと感じました。
例えば以下のような説明はいかがでしょうか?

  • 以下の例では、newというメソッドを呼び出しています。


{% 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`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この場合はlength

文末に「です」を加えてもよさそうだなと思います👍

@maimux2x
Copy link
Collaborator

@sontixyou
ボリュームが多いページの翻訳にご協力くださり、ありがとうございます!
少し細かな点で恐縮ですが、コメントを何箇所かつけております。
お手隙の際にご確認をいただけると幸いです🙏

@sontixyou
Copy link
Contributor Author

@maimux2x
レビューありがとうございます!
コメントいただいた箇所の修正完了です。
ご確認お願いいたします。


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プログラムです。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他の箇所が「コンピューター」と記載しているため、統一をお願いしてもよろしいでしょうか?

@maimux2x
Copy link
Collaborator

@sontixyou
早々にご対応くださり、ありがとうございます!
大変申し訳ないのですが、1箇所だけ見落としてしまい・・・あと1点ご対応を検討いただけると幸いです🙇🏻‍♀️
お手隙の際で問題ありませんので、ご確認の程よろしくお願いいたします🙏

@sontixyou sontixyou requested a review from maimux2x May 23, 2023 13:16
@sontixyou
Copy link
Contributor Author

@maimux2x

大変申し訳ないのですが、1箇所だけ見落としてしまい・・・あと1点ご対応を検討いただけると幸いです🙇🏻‍♀️

全然大丈夫です!修正完了です!!

@maimux2x
Copy link
Collaborator

@sontixyou
ご対応ありがとうございます🙏
approvedしました〜!
本番反映まで少しお待ちください!

@maimux2x maimux2x merged commit 1f42d02 into railsgirls-jp:master May 24, 2023
@maimux2x
Copy link
Collaborator

本番にマージしたため、該当ページのご確認とissueのcloseをお手隙の際によろしくお願いいたします🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

「Introduction to Ruby」を翻訳
2 participants