Skip to content

Instantly share code, notes, and snippets.

@wicky-andrian
Created April 23, 2020 16:42
Show Gist options
  • Save wicky-andrian/bc8615b0fce5e5147760867da80451fa to your computer and use it in GitHub Desktop.
Save wicky-andrian/bc8615b0fce5e5147760867da80451fa to your computer and use it in GitHub Desktop.
Contoh metode string part 6
a = "halooooooooooo"
puts "a = halooooooooooo"
puts "Objek id dari a: #{a.object_id}"
b = a.upcase
puts "b = a.upcase"
puts b
puts "Objek id dari b: #{b.object_id}"
c = a.upcase!
puts "c = a.upcase!"
puts c
puts "Objek id dari c: #{c.object_id}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment