Skip to content

Commit 5454c35

Browse files
meisyalstomar
authored andcommitted
Fix translation of Ruby code examples (id) (ruby#1482)
1 parent 7e8e11b commit 5454c35

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

id/examples/cities.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ layout: null
55
{% highlight ruby %}
66
# Ruby mengerti apa yang
77
# Anda maksud, bahkan ketika
8-
# Anda ingin melakukan
9-
# matematika pada seluruh
10-
# Array
8+
# Anda ingin mencari
9+
# tahu sendiri pada
10+
# seluruh Array
1111
cities = %w[ London
1212
Oslo
1313
Paris

id/examples/greeter.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ layout: null
33
---
44

55
{% highlight ruby %}
6-
# kelas TukangSapa
7-
class TukangSapa
6+
# Kelas Greeter
7+
class Greeter
88
def initialize(name)
99
@name = name.capitalize
1010
end
1111

12-
def menyapa
12+
def salute
1313
puts "Halo #{@name}!"
1414
end
1515
end
1616

17-
# Membuat obyek baru
18-
g = TukangSapa.new("dunia")
17+
# Membuat sebuh objek baru
18+
g = Greeter.new("dunia")
1919

20-
# Output "Halo dunia!"
21-
g.menyapa
20+
# Keluaran "Halo Dunia!"
21+
g.salute
2222
{% endhighlight %}

id/examples/hello_world.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ layout: null
33
---
44

55
{% highlight ruby %}
6-
# Halo Dunia yang
7-
# terkenal di Ruby.
8-
# Anda tidak perlu:
6+
# Program Halo Dunia
7+
# yang populer itu mudah
8+
# di Ruby. Anda tidak perlu:
99
#
10-
# * metode "main"
11-
# * newline escapes
12-
# * semicolons (titik koma)
10+
# * Sebuah metode "main"
11+
# * Baris baru
12+
# * Titik koma
1313
#
1414
# Ini kodenya:
1515

id/examples/i_love_ruby.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ layout: null
33
---
44

55
{% highlight ruby %}
6-
# Output "Aku cinta Ruby"
7-
say = "Aku cinta Ruby"
6+
# Keluaran "Saya cinta Ruby"
7+
say = "Saya cinta Ruby"
88
puts say
99

10-
# Output "AKU *CINTA* RUBY"
10+
# Keluaran "Saya *CINTA* RUBY"
1111
say['cinta'] = "*cinta*"
1212
puts say.upcase
1313

14-
# Output "Aku *cinta* Ruby"
14+
# Keluaran "Saya *cinta* Ruby"
1515
# sebanyak lima kali
1616
5.times { puts say }
1717
{% endhighlight %}

0 commit comments

Comments
 (0)