Skip to content

Commit 3d73e1b

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

File tree

11 files changed

+12
-12
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
  • it/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
  • 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_tw/documentation/ruby-from-other-languages/to-ruby-from-php

11 files changed

+12
-12
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.

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.

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

pt/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 @@ Diferente do PHP, em Ruby …
3838
etc. para converter entre strings, inteiros e demais tipos, em vez de
3939
confiar na linguagem para o fazer.
4040
* Strings, números, arrays, hashes, etc. são objectos. Em vez de
41-
invocarmos abs(-1) é -1.abs
41+
invocarmos `abs(-1)` é `-1.abs`
4242
* Os parêntesis são opcionais nas invocações dos métodos, excepto para
4343
clarificar que parâmetros são passados para que método.
4444
* Em vez de convenções de nomes, tal como o uso de underscore (`_`), a

tr/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 @@ PHP’nin aksine, Rubyde…
3939
arasında çeviri yapabilmek için bunu yapması için dile güvenmek yerine
4040
`to_s`, `to_i` vs. metodları kullanmalısınız.
4141
* Karakter dizileri, sayılar, dizeler, hash veri tipleri, vs. nesnedir.
42-
abs(-1) yerine -1.abs olarak kullanılır.
42+
`abs(-1)` yerine `-1.abs` olarak kullanılır.
4343
* Parantezler metod çağrılarında isteğe bağlıdır, hangi parametrelerin
4444
hangi metod çağrılarına gideceğini netleştirmek için kullanılanlar
4545
hariç.

uk/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 @@ PHP широко використовується для вебзастосун
3535
* Строга типізація. Вам потрібно викликати `to_s`, `to_i` тощо, щоб
3636
перетворювати рядки, числа і т. ін., замість того щоб покладатися
3737
на автоматичні перетворення мови.
38-
* Рядки, числа, масиви, hash тощо — об’єкти. Замість abs(-1) — `-1.abs`.
38+
* Рядки, числа, масиви, hash тощо — об’єкти. Замість `abs(-1)``-1.abs`.
3939
* Дужки у викликах методів необов’язкові, окрім випадків, коли потрібно
4040
уточнити, які параметри належать якому виклику.
4141
* Стандартна бібліотека та розширення організовані в модулях і класах.

vi/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 @@ Không giống như PHP, trong Ruby…
3535
* Cách gõ ngắn gọn. Bạn có thể gọi `to_s`, `to_i` v.v. để
3636
chuyển đổi sang kiểu chuỗi, số vân vân, thay vì dựa vào ngôn ngữ.
3737
* Strings, numbers, arrays, hashes, v.v đều là các đối tượng. Thay vì
38-
gọi abs(-1) chỉ cần gọi -1.abs.
38+
gọi `abs(-1)` chỉ cần gọi `-1.abs`.
3939
* Các dấu ngoặc được tùy chọn khi gọi phương thức, ngoại trừ một số
4040
tham số cần được làm rõ khi gọi phương thức.
4141
* Thay cho các quy ước đặt tên, như gạch chân, các phần mở rộng của

0 commit comments

Comments
 (0)