Skip to content

Commit 5c39c1d

Browse files
snoozer05stomar
authored andcommitted
Revise list of not overloadable operators (ruby#1382)
`!`, `!=`, and `!~` are overloadable since 1.9.1
1 parent 1d5c75d commit 5c39c1d

File tree

16 files changed

+16
-16
lines changed
  • bg/documentation/ruby-from-other-languages
  • de/documentation/ruby-from-other-languages
  • en/documentation/ruby-from-other-languages
  • es/documentation/ruby-from-other-languages
  • fr/documentation/ruby-from-other-languages
  • id/documentation/ruby-from-other-languages
  • it/documentation/ruby-from-other-languages
  • ja/documentation/ruby-from-other-languages
  • ko/documentation/ruby-from-other-languages
  • pl/documentation/ruby-from-other-languages
  • pt/documentation/ruby-from-other-languages
  • ru/documentation/ruby-from-other-languages
  • tr/documentation/ruby-from-other-languages
  • vi/documentation/ruby-from-other-languages
  • zh_cn/documentation/ruby-from-other-languages
  • zh_tw/documentation/ruby-from-other-languages

16 files changed

+16
-16
lines changed

bg/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ end
312312
Оператоите, които следват не са методи и поради това не могат да бъдат предефинирани:
313313

314314
{% highlight ruby %}
315-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
315+
=, .., ..., not, &&, and, ||, or, ::
316316
{% endhighlight %}
317317

318318
В допълнение `+=`, `*=` и т.н са съкращения за `var = var + other_var`,

de/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Die folgenden Operatoren sind *kein* syntaktischer Zucker. Sie sind
440440
keine Methoden, und können nicht umdefiniert werden:
441441

442442
{% highlight ruby %}
443-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
443+
=, .., ..., not, &&, and, ||, or, ::
444444
{% endhighlight %}
445445

446446
Zudem sind `+=`, `*=`, usw. nur Abkürzungen für `foo = foo + bar`,

en/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ To define the unary + and - (think +1 and -2), you must define the `+@` and
410410
though. They are not methods, and cannot be redefined:
411411

412412
{% highlight ruby %}
413-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
413+
=, .., ..., not, &&, and, ||, or, ::
414414
{% endhighlight %}
415415

416416
In addition, `+=`, `*=` etc. are just abbreviations for `var = var + other_var`,

es/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ Sin embargo, los siguientes operadores **no** son simplificaciones
431431
sintácticas. No son métodos, y no pueden ser redefinidos:
432432

433433
{% highlight ruby %}
434-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
434+
=, .., ..., not, &&, and, ||, or, ::
435435
{% endhighlight %}
436436

437437
Además, `+=`, `*=` etc. sólo son abreviaciones para `var = var + otra_var`,

fr/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ Les opérateurs ci-dessous ne sont pas des méthodes, et ne peuvent pas
433433
être modifiés :
434434

435435
{% highlight ruby %}
436-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
436+
=, .., ..., not, &&, and, ||, or, ::
437437
{% endhighlight %}
438438

439439
Par ailleurs, `+=`, `*=`, etc. ne sont que des raccourcis pour

id/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ Operator-operator dibawah ini bukan metode dan tidak dapat didefinisikan
459459
ulang:
460460

461461
{% highlight ruby %}
462-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
462+
=, .., ..., not, &&, and, ||, or, ::
463463
{% endhighlight %}
464464

465465
Tambahan, `+=`, `*=` dan lain sebagainya hanyalah singkatan untuk

it/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ I seguenti operatori però **non** sono zucchero sintattico: non sono
432432
metodi e non possono essere ridefiniti:
433433

434434
{% highlight ruby %}
435-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
435+
=, .., ..., not, &&, and, ||, or, ::
436436
{% endhighlight %}
437437

438438
Inoltre, `+=`, `*=` ecc. sono solo abbreviazioni di

ja/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ C++の`operator+`などは必要ありません。
425425
これらはメソッドではないので、再定義できません。
426426

427427
{% highlight ruby %}
428-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
428+
=, .., ..., not, &&, and, ||, or, ::
429429
{% endhighlight %}
430430

431431
加えて`+=``*=`などは`var = var + other_var``var = var * other_var`

ko/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ C++의 `operator+` 같은 건 필요 없습니다.
397397
아니며 재정의할 수 없습니다.
398398

399399
{% highlight ruby %}
400-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
400+
=, .., ..., not, &&, and, ||, or, ::
401401
{% endhighlight %}
402402

403403
덧붙여, `+=`, `*=` 등등은 `var = var + other_var`, `var = var * other_var`

pl/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ odpowiednio metody `+@` i `-@`. Poniższe operatory jednak
410410
przedefiniować.
411411

412412
{% highlight ruby %}
413-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
413+
=, .., ..., not, &&, and, ||, or, ::
414414
{% endhighlight %}
415415

416416
Dodatkowo, `+=`, `*=` etc. są po prostu skrótami dla `var = var + other_var`,

pt/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Os operadores abaixo não são, no entanto, açúcar sintáctico.Não são
424424
métodos, e não podem ser redifinidos:
425425

426426
{% highlight ruby %}
427-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
427+
=, .., ..., not, &&, and, ||, or, ::
428428
{% endhighlight %}
429429

430430
Como `+=`, `*=` etc. são somente abreviações para `var = var + outra_var`,

ru/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ end
400400
Они не являются методами и не могут быть переопределены:
401401

402402
{% highlight ruby %}
403-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
403+
=, .., ..., not, &&, and, ||, or, ::
404404
{% endhighlight %}
405405

406406
В дополнение к этому, `+=`, `*=` и т.д. - это всего лишь сокращения для

tr/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ Aşağıdaki operatörler bu şekilde değerlendirilmezler. Bunlar metod
396396
değildir ve tekrar tanımlanamazlar:
397397

398398
{% highlight ruby %}
399-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
399+
=, .., ..., not, &&, and, ||, or, ::
400400
{% endhighlight %}
401401

402402
Ek olarak, `+=`, `*=` vb. şunların kısaltmasıdır : `var = var + other_var`,

vi/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ Các toán tử dưới đây **không** có cú pháp. Nó không phải là c
410410
phương thức, và không thể tái định nghĩa:
411411

412412
{% highlight ruby %}
413-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
413+
=, .., ..., not, &&, and, ||, or, ::
414414
{% endhighlight %}
415415

416416
Thêm vào đó, `+=`, `*=` v.v. chỉ là cách viết tắt cho `var = var + other_var`,

zh_cn/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ end
333333
定义了 `[]``[]=` 方法后,你甚至拥有了数组风格的访问方法。要想定义一元操作符 + 和 -,你也必须定义相应的 `+@``-@` 方法。下面的操作符 **不是** 语法糖,它们不是方法,无法重新被定义:
334334

335335
{% highlight ruby %}
336-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
336+
=, .., ..., not, &&, and, ||, or, ::
337337
{% endhighlight %}
338338

339339
此外,`+=``*=` 等类似操作符只是 `var = var + other_var``var = var * other_var`等的简写。因此也无法重新被定义。

zh_tw/documentation/ruby-from-other-languages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ end
358358
以下的操作符則**不是**語法包裝。它們不是方法,不能被覆寫定義:
359359

360360
{% highlight ruby %}
361-
=, .., ..., !, not, &&, and, ||, or, !=, !~, ::
361+
=, .., ..., not, &&, and, ||, or, ::
362362
{% endhighlight %}
363363

364364
此外 `+=`, `*=` 等只是 `var = var + other_var``var = var * other_var`

0 commit comments

Comments
 (0)