Skip to content

Fix quotation marks #3574

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

Merged
merged 2 commits into from
May 25, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Python е друг език за обща употреба, вдъхновил
вместо `pydoc`).
* Няма специални знаци за терминирането на реда.
* Литералите от знаци могат да бъдат разположени на няколко реда,
подобно на низовете в ”””
подобно на низовете в `"""`
* Квадратните скоби са за масиви, къдравите са за речници (които в Ruby
са наречени “хешове” ).
* Масивите работя по същия начин
Expand Down
2 changes: 1 addition & 1 deletion de/documentation/quickstart/4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ end
`each` ist eine Methode, die einen Code-Block akzeptiert und diesen für
jedes einzelne Element der Liste ausführt. Das Stück zwischen `do` und
`end` ist ein solcher Block. Man kann ihn als eine anonyme Funktion oder
`lambda` ansehen. Die Variable zwischen den Pipe-Zeichen (\|”) ist der
`lambda` ansehen. Die Variable zwischen den Pipe-Zeichen (\|”) ist der
Parameter für diesen Block.

Was hier passiert, ist dass für jeden Eintrag in einer Liste `name` an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ author: "Unknown Author"
lang: de
---

Documentation for the Ruby 1.8 standard library”:
Documentation for the Ruby 1.8 standard library”:
http://www.ruby-doc.org/stdlib/ is available. This is the HTML from the
RDoc comments resulting from Gavin Sinclair’s stdlib-doc project.
4 changes: 2 additions & 2 deletions de/news/_posts/2010-08-24-ruby-1-9-2-verffentlicht.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ den folgenden Änderungen:
unterstützt
* `Time` wurde neu implementiert. Es gibt kein Jahr-2038-Problem mehr.
* Einige Verbesserungen bei Regulären Ausdrücken
* `$:` enthält das aktuelle Verzeichnis (.”) nicht mehr
* `$:` enthält das aktuelle Verzeichnis (.”) nicht mehr
* dl ist neu implementiert worden; es setzt nun auf libffi auf.
* Eine neue Library namens “psych” wrappt libyaml. Du kannst diese
Library anstatt von syck verwenden.
Expand Down Expand Up @@ -81,7 +81,7 @@ die Library in diesem Verzeichnis.

#### Es gibt mir einen `LoadError`!

`$:` beinhaltet das aktuelle Verzeichnis (.”) nicht mehr, weswegen
`$:` beinhaltet das aktuelle Verzeichnis (.”) nicht mehr, weswegen
einige Skripte nachgebessert werden müssen. Wie auch immer, dein Skripte
sollte ohnehin so wenig wie möglich vom aktuellen Verzeichnis abhängig
sein.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ author: "Unknown Author"
lang: en
---

Documentation for the Ruby 1.8 standard library”:
Documentation for the Ruby 1.8 standard library”:
http://www.ruby-doc.org/stdlib/ is available. This is the HTML from the
RDoc comments resulting from Gavin Sinclair’s stdlib-doc project.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dua tulisan “Anda harus baca!” setiap hari, sementara [RubyFlow][1] akan
menjadi tempat untuk sesuatu yang instan/cepat (mirip seperti ketika
kita menggunakan Delicious dengan library Ruby dengan seketika). Anda
tidak perlu signup untuk posting walau disana ada CAPTCHA dan gunakan
rel=nofollow” pada link link Anda jika Anda tidak menggunakannya (untuk
rel=nofollow” pada link link Anda jika Anda tidak menggunakannya (untuk
menghindari spam).

[RubyFlow][1] dikembangkan karena Peter banyak melihat dan mendapatkan
Expand Down
4 changes: 2 additions & 2 deletions id/news/_posts/2008-05-28-21-trik-trik-ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Contah dengan Array:
{% highlight ruby %}
a = %w{a b}
b = %w{c d}
[ a + b ] # => [[”a”, “b”, “c”, “d”]]
[ *a + b ] # => [”a”, “b”, “c”, “d”]
[ a + b ] # => [["a", "b", "c", "d"]]
[ *a + b ] # => ["a", "b", "c", "d"]
{% endhighlight %}

Contoh dengan Hash:
Expand Down
2 changes: 1 addition & 1 deletion it/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ method(:puts).call "puts è un oggetto!"

Molti degli operatori sono solamente dello “zucchero sintattico” (con
alcune regole di precendenza però) per delle chiamate a dei metodi. È
possibile, per esempio, ridefinire il metodo +” della classe Integer:
possibile, per esempio, ridefinire il metodo +” della classe Integer:

{% highlight ruby %}
class Integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Javaと違って、Rubyは...
* キャストはありません。メソッドを呼び出すだけです。
例外を確認するつもりなら、コードを実行する前にユニットテストで示しましょう。
* `Foo foo = new Foo("hi")`は`foo = Foo.new("hi")`と書きます。
* コンストラクタは常にinitialize”という名前になります。クラス名ではありません。
* コンストラクタは常にinitialize”という名前になります。クラス名ではありません。
* インターフェイスの代わりにMix-inを使います。
* XMLよりもYAMLが好まれます。
* `null`は`nil`です。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ PHPと違って、Rubyは...
* 変数は参照です。
* 抽象クラス(`abstract`)や`interface`はありません。
* ハッシュと配列には互換性はありません。
* `false``nil`のみが偽になります。`0``array()``””`はすべて真と評価されます。
* `false``nil`のみが偽になります。`0``array()``""`はすべて真と評価されます。
* ほとんどすべてのことは、メソッド呼び出しです。`raise`(PHPにおける`throw`)ですら、メソッド呼び出しです。
2 changes: 1 addition & 1 deletion ja/news/_posts/2015-10-13-fukuoka-ruby-award-2016.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ IIJ GIO賞 賞品:

* IIJ GIOで使用できる50万円分クーポン (最大6ヶ月)

まつもとさんがあなたのコードをテストし、レビューするなんて、とても貴重です!しかも、応募は無料です。”
まつもとさんがあなたのコードをテストし、レビューするなんて、とても貴重です!しかも、応募は無料です。”

それでは。
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ webrick gem をアップグレードすることを強く推奨します。
## 詳細

WEBrick は、無効な Transfer-Encoding ヘッダーに対して寛容すぎました。
これは WEBrick と一部の HTTP プロキシサーバー間で一貫性のない解釈が発生し、攻撃者が HTTP リクエストをスマグリング(smuggle)”する可能性があります。
これは WEBrick と一部の HTTP プロキシサーバー間で一貫性のない解釈が発生し、攻撃者が HTTP リクエストをスマグリング(smuggle)”する可能性があります。
詳細は [CWE-444](https://cwe.mitre.org/data/definitions/444.html) を参照してください。

webric gem を 1.6.1 以降に更新してください。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ author: "Unknown Author"
lang: ko
---

Documentation for the Ruby 1.8 standard library”:
Documentation for the Ruby 1.8 standard library”:
http://www.ruby-doc.org/stdlib/ is available. This is the HTML from the
RDoc comments resulting from Gavin Sinclair’s stdlib-doc project.
4 changes: 2 additions & 2 deletions zh_cn/documentation/quickstart/2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ header: |

---

如果您想说很多次Hello”,却不想把手指累酸的话,是定义一个函数的时候啦!
如果您想说很多次Hello”,却不想把手指累酸的话,是定义一个函数的时候啦!

{% highlight irb %}
irb(main):010:0> def h
Expand Down Expand Up @@ -82,7 +82,7 @@ Hello World!

## 如何更有礼貌

让我们更有礼貌一些,不光记住您的名字,还在您到来的时候欢迎您,并且始终彬彬有礼。 您可以开始使用对象了。我们先建立 Greeter”
让我们更有礼貌一些,不光记住您的名字,还在您到来的时候欢迎您,并且始终彬彬有礼。 您可以开始使用对象了。我们先建立 Greeter”
(有礼貌的人) 类。

{% highlight irb %}
Expand Down
2 changes: 1 addition & 1 deletion zh_cn/documentation/quickstart/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ irb(main):005:0> 3**2
=> 9
{% endhighlight %}

在 Ruby 里 `**` 是次方”的意思。但如果您想开根号呢?
在 Ruby 里 `**` 是次方”的意思。但如果您想开根号呢?

{% highlight irb %}
irb(main):006:0> Math.sqrt(9)
Expand Down
2 changes: 1 addition & 1 deletion zh_cn/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class MyClass
end
{% endhighlight %}

您可能认为 `another_method` 是公有的。并不是这样的,private” 权限声明会一直应用到类声明底部,
您可能认为 `another_method` 是公有的。并不是这样的,private” 权限声明会一直应用到类声明底部,
或者直到另外一个权限声明开始起作用。函数默认是公开的:

{% highlight ruby %}
Expand Down
4 changes: 2 additions & 2 deletions zh_tw/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Ruby 的運算元其實就是個方法(method)。你也可以重新定義運

Ruby 的區塊可說是強大靈活性的來源。 程式設計師可以為任何的方法加上閉包(closure),來描述這個方法該做什麼。此處的閉包稱為 *block* 同時這也是從指令式程式設計語言如 PHP 或 Visual Basic 轉換到 Ruby 的新手最喜歡的功能。

區塊的靈感是由函數式程式設計語言而來。Matz 說到:在 Ruby 的閉包之中,我要向 Lisp 文化致敬<sup>[3](#fn3)</sup>”。
區塊的靈感是由函數式程式設計語言而來。Matz 說到:在 Ruby 的閉包之中,我要向 Lisp 文化致敬<sup>[3](#fn3)</sup>”。

{% highlight ruby %}
search_engines =
Expand Down Expand Up @@ -104,7 +104,7 @@ Ruby 還具有以下的特點:

* Ruby 具有例外處理(exception handling)的能力。就如 Java 或 Python 一樣,可以讓使用者輕鬆的處理錯誤狀況。

* Ruby 對於所有的物件具有一個真正的標記-清除(mark and sweep)式的垃圾收集器(garbage collector)。使用者不必去維護擴充函式庫中的 參考計數器(reference counts)。如 Matz 說的:這樣有益健康”。
* Ruby 對於所有的物件具有一個真正的標記-清除(mark and sweep)式的垃圾收集器(garbage collector)。使用者不必去維護擴充函式庫中的 參考計數器(reference counts)。如 Matz 說的:這樣有益健康”。

* 在 Ruby 中撰寫 C 的擴充程式比在 Perl 或 Python 中方便,擁有許多方便的 API 可以讓 C 呼叫 Ruby。這樣可以將 Ruby 當成腳本語言,嵌入到其他軟體之中。它也具有 SWIG 的呼叫界面。

Expand Down
2 changes: 1 addition & 1 deletion zh_tw/documentation/quickstart/4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ for (i=0; i<number_of_elements; i++)

這樣也行,只是沒這麼漂亮。你需要一個用過即丟的 `i` 變數、需要計算容器的長度、檢查離開迴圈的條件。而 Ruby
的方式漂亮多了,所有的工作都被包裝在 `each` 方法裡。在 `each` 內部會去輪流呼叫 `yield "Albert"`、`yield
"Brenda"`、`yield "Charles"` 等等。(譯註:yield 的意思是轉交”,也就是跳去執行程式區塊)
"Brenda"`、`yield "Charles"` 等等。(譯註:yield 的意思是轉交”,也就是跳去執行程式區塊)

## 讓 Ruby 發光發亮的程式區塊(Blocks)

Expand Down
2 changes: 1 addition & 1 deletion zh_tw/documentation/quickstart/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ irb(main):006:0> Math.sqrt(9)
=> 3.0
{% endhighlight %}

等一下,上面那是什麼? 如果你想說:它是 9 的平方根” 那就對了。讓我們來仔細看一下。首先,什麼是 `Math`?
等一下,上面那是什麼? 如果你想說:它是 9 的平方根” 那就對了。讓我們來仔細看一下。首先,什麼是 `Math`?

## 給程式分類的模組(Modules)

Expand Down
6 changes: 3 additions & 3 deletions zh_tw/documentation/ruby-from-other-languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ lang: zh_tw

### 迭代 (Iteration)

Ruby 有兩個常用的特色你可能沒見過,那就是 “程式區塊(blocks)” 和迭代子(iterators)”。不像使用索引的迴圈(例如 C,
Ruby 有兩個常用的特色你可能沒見過,那就是 “程式區塊(blocks)” 和 “迭代子(iterators)”。不像使用索引的迴圈(例如 C,
C++ 和 pre-1.5 Java),或是迴圈控制結構(例如 Perl 的 `for (@a) {...}`,或是
Python 的 `for i in aList: ...`)。在 Ruby 裡你會常常看到:

Expand Down Expand Up @@ -57,7 +57,7 @@ z # => true

許多 Ruby 新手會搞不清楚什麼是 Symbols(符號) 可以做什麼用。

Symbols 就如同一個識別符號。一個 symbol 就代表它是誰”了,而不是代表它是什麼”。打開 `irb` 來看一看它們的區別:
Symbols 就如同一個識別符號。一個 symbol 就代表它是誰”了,而不是代表它是什麼”。打開 `irb` 來看一看它們的區別:

{% highlight irb %}
irb(main):001:0> :george.object_id == :george.object_id
Expand Down Expand Up @@ -94,7 +94,7 @@ end

### 可變的常數

常數(Constant)並不真的無法改變。如果你修改了一個已經有值的常數,你會得到一個警告訊息,但程式不會終止。當然這不表示你應該”修改常數的值。
常數(Constant)並不真的無法改變。如果你修改了一個已經有值的常數,你會得到一個警告訊息,但程式不會終止。當然這不表示你應該”修改常數的值。

### 命名慣例

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ typed)的程式語言。Ruby的執行期環境(runtime)會盡可能的處理所
* 你不能直接存取成員變數,所有對公開的成員變數(在Ruby中稱作屬性, attribute)的存取都會透過方法呼叫。
* 用`self`取代`this`。
* 有些方法會以 ’?’ 或是 ’!’結尾,這些符號都真的存在於方法名稱中。
* 本質上,Ruby沒有多重繼承。然而,Ruby可以使用mixin”。(也就是說,你可以「繼承」某個模組的所有方法)
* 本質上,Ruby沒有多重繼承。然而,Ruby可以使用mixin”。(也就是說,你可以「繼承」某個模組的所有方法)
* 呼叫方法時的括號通常都可以省略。
* 你可以在任何時候重新打開一個類別以加入新的方法。
* 你不需要 C++ 的 template 機制。(因為你可以將某個變數設值為任何一種物件,型別將在執行期自動辨識。)你也不需要轉型。
* 迭代(Iteration)的運作方式有些許不同,Ruby中你會讓你的物件mixin `Enumerator`模組並且直接呼叫
`my_obj.each` 方法,而不是使用一個獨立的迭代器(Iterator)。
* Ruby只有兩種容器類別:`Array`跟`Hash`。
* Ruby沒有型別轉換,你也會發現在Ruby中你不需要它們。
* Ruby內建了多執行緒。但是在Ruby 1.8之中只有green threads”(只在直譯器中有效的執行緒),而不是原生的執行緒。
* Ruby內建了多執行緒。但是在Ruby 1.8之中只有green threads”(只在直譯器中有效的執行緒),而不是原生的執行緒。
* Ruby的標準函式庫中就包含了單元測試(Unit test)函式庫。
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ Ruby與Java不同的地方,...
* 所有東西都是物件,包括像 2 與 3.14159 這些數字。
* 沒有靜態的型別檢查。
* 變數名稱只是標記,不與型別關聯。
* 不用宣告型別。只要依需要指定給一個新的變數,事情就發生”了 (所以不用 `int[] a = {1,2,3};` ,僅需 `a =
* 不用宣告型別。只要依需要指定給一個新的變數,事情就發生”了 (所以不用 `int[] a = {1,2,3};` ,僅需 `a =
[1,2,3]` )。
* 直接呼叫方法,不用轉型。在執行程式前,你的單元測試應該能告訴你是否會有例外(exception)。
* 寫 `foo = Foo.new("hi")` ,而非 `Foo foo = new Foo("hi");` 。
* 建構式的名稱固定為initialize”,而非與類別同名。
* 建構式的名稱固定為initialize”,而非與類別同名。
* 運用 “mixin” 而非介面(interface)。
* 傾向使用<abbr title="YAML Ain’t Markup Language">YAML</abbr>多於XML。
* 是 `nil` ,不是 `null` 。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Ruby 與 Python 不同的地方...
(expression substitution)語法(可以讓你直接在字串裡直接插入 Ruby
運算後的結果,而不用像 `"add " + "strings " + "together"`
的字串組合)。單引號字串則跟 Python 的 `r"raw strings"` 是一樣的。
* 沒有什麼新式”或舊式”的類別寫法,Ruby 的類別就只有一種寫法。
* 沒有什麼新式”或舊式”的類別寫法,Ruby 的類別就只有一種寫法。
* 你不能直接存取物件的屬性。在 Ruby 裡指能透過方法呼叫。
* 方法呼叫時的小括號通常是可以省略。
* 有 `public`、`private`、以及 `protected`。
Expand Down
Loading