Skip to content

Instantly share code, notes, and snippets.

@wicky-andrian
Created April 20, 2020 17:21
Show Gist options
  • Save wicky-andrian/f55cd4ac2e1cc0edd4034c3cc9bd4acd to your computer and use it in GitHub Desktop.
Save wicky-andrian/f55cd4ac2e1cc0edd4034c3cc9bd4acd to your computer and use it in GitHub Desktop.
Contoh metode string part 4
a = "Programing Ruby"
puts a
puts "Objek ID: #{a.object_id}"
b = a.reverse
puts b
puts "Objek ID: #{b.object_id}"
c = a.reverse!
puts c
puts "Objek ID: #{c.object_id}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment