Skip to content

Commit 8425500

Browse files
committed
Fix code formatting in "to Ruby from PHP"
Mark abs(-1) and -1.abs as code sections.
1 parent 01dec25 commit 8425500

File tree

17 files changed

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

17 files changed

+18
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ PHP е широко разпространен език за писане на
3737
`to_i` и т.н. за превръщане на низове, числа, вместо да разчитате
3838
интерпретатора да свърши това
3939
* Низовете, числата, масивите и хешовете са обекти. За това вместо
40-
abs(-1) ползваме -1.abs
40+
`abs(-1)` ползваме `-1.abs`
4141
* Не е задължителна употребата на скоби в извикването на методи
4242
* Стандартната библиотека и разширенията са организирани в модули и
4343
класове

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Im Gegensatz zu PHP hat Ruby…
3838
* Es gibt auch strenge Typisierung: man muss explizit Funktionen zur
3939
Typkonvertierung aufrufen. Z.B. `to_s` oder `to_i`
4040
* strings, numbers, arrays, hashes, etc. sind Objekte. Also statt
41-
abs(-1) schreibt man in Ruby -1.abs
41+
`abs(-1)` schreibt man in Ruby `-1.abs`
4242
* Parameter bei Methodenaufrufen brauchen nicht in runde Klammern
4343
gesetzt werden – außer, falls notwendig, um Mehrdeutigkeit zu
4444
vermeiden.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Unlike in PHP, in Ruby…
3636
convert between strings, integers and so on, instead of relying on the
3737
language to do it.
3838
* Strings, numbers, arrays, hashes, etc. are objects. Instead of calling
39-
abs(-1) it’s -1.abs.
39+
`abs(-1)` it’s `-1.abs`.
4040
* Parentheses are optional in method calls, except to clarify which
4141
parameters go to which method calls.
4242
* The standard library and extensions are organized in modules and classes.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A diferencia de PHP, en Ruby…
3737
convertir entre strings, integers y así en más, en vez de depender del
3838
lenguaje para que lo haga.
3939
* los strings, números, arrays, hashes, etc. son objetos. En vez de
40-
utilizar `abs(-1)` se usa `-1.abs`.
40+
utilizar `abs(-1)`` se usa `-1.abs``.
4141
* los paréntesis son opcionales en las llamadas a los métodos, excepto
4242
para clarificar qué parámetros van para qué método, cuando es
4343
necesario.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Contrairement à PHP, avec Ruby…
3535
* le typage est fort. Il faut utiliser des méthodes comme `to_s`, `to_i`
3636
pour faire les conversions de types ;
3737
* nombres, chaînes de caractères, tableaux, hash, etc. tous sont des
38-
objets. Par exemple, on écrira `-1.abs` et non pas `abs(-1)` ;
38+
objets. Par exemple, on écrira `-1.abs`` et non pas `abs(-1)`` ;
3939
* les parenthèses sont souvent optionnelles, notamment dans les appels
4040
de méthodes. Usage recommandé pour clarifier la filiation des
4141
paramètres, cependant ;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Tidak seperti di PHP, di Ruby…
7070
Anda inginkan, dan mempermudah *debugging*.
7171
* String, number, array, hash, dan seterusnya adalah obyek. Dalam
7272
pemrograman berorientasi obyek sebenarnya, yang digunakan adalah
73-
`-1.abs`, bukan `abs(-1)`
73+
`-1.abs``, bukan `abs(-1)``
7474
* Ketika memanggil metode, tidak ada keharusan untuk memakai tanda
7575
kurung, kecuali kalau ingin mengklarifikasikan parameter yang mana
7676
yang masuk ke pemanggilan metode tertentu yang mana (agar tidak

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A differenza di PHP, in Ruby…
3737
effettuare delle conversioni tra stringhe, numeri interi, e così via,
3838
invece di lasciare al linguaggio tale compito.
3939
* Stringhe, numeri, array, hash ecc. sono degli oggetti. Invece di
40-
chiamare abs(-1) si chiama -1.abs.
40+
chiamare `abs(-1)` si chiama `-1.abs`.
4141
* Le parentesi sono opzionali nelle chiamate ai metodi, eccetto per
4242
chiarificare quali parametri si riferiscono a quali metodi.
4343
* La libreria standard e le estensioni sono organizzate in moduli e classi.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PHPと違って、Rubyは...
3131

3232
* 強い型付けがあります。文字列や数値などを互いに変換するためには、言語に任せるのではなく
3333
`to_s``to_i`などのメソッドを明示的に呼ぶ必要があります。
34-
* 文字列、数、配列、ハッシュなどはオブジェクトです。`abs(-1)`を呼び出す代わりに`-1.abs`とします。
34+
* 文字列、数、配列、ハッシュなどはオブジェクトです。`abs(-1)``を呼び出す代わりに`-1.abs``とします。
3535
* パラメータを渡していることを明確にする場合を除いて、メソッド呼び出しの括弧は基本的にオプションです。
3636
* 標準ライブラリや拡張は、モジュールやクラスを使って構造化されています。アンダースコアなどによる名前付けを使った構造化は行いません。
3737
* リフレクション機能はオブジェクトごとに備わっています。PHP5のように`Reflection`クラスを使う必要はありません。

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ PHP와는 다르게, Ruby에서는...
3333

3434
* 강 타입을 사용합니다. 문자열, 정수 등을 변환하려면 언어에 의존하는 대신
3535
`to_s`, `to_i` 등을 호출해야 합니다.
36-
* 문자열, 숫자, 배열, 해시 등은 객체입니다. abs(-1)을 호출하는 대신
37-
-1.abs입니다.
36+
* 문자열, 숫자, 배열, 해시 등은 객체입니다. `abs(-1)`을 호출하는 대신
37+
`-1.abs`입니다.
3838
* 메서드 호출에서 괄호는 생략 가능합니다. 단, 어떤 매개변수가 어떤 메서드 호출로
3939
이동하는지 명확히 하는 경우는 예외입니다.
4040
* 표준 라이브러리 및 확장은 모듈 및 클래스로 구성됩니다.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ W przeciwieństwie do PHP, w Rubim…
3939
przeprowadzić konwersje pomiędzy łańcuchami znaków, liczbami
4040
całkowitymi i podobnymi, zamiast polegać, że język zrobi to za ciebie.
4141
* Stringi, liczby, tablice, hasze itp. są obiektami. Zamiast wywoływać
42-
abs(-1) piszesz -1.abs.
42+
`abs(-1)` piszesz `-1.abs`.
4343
* Nawiasy są opcjonalne w wywołaniach metod, chyba że musisz wyjaśnić w
4444
ten sposób, które parametry odnoszą się do odpowiednich wywołań metod.
4545
* Zamiast konwencji nazw (np. podkreśleń), biblioteka standardowa

0 commit comments

Comments
 (0)