Created
April 23, 2020 16:17
-
-
Save wicky-andrian/a799ed457e037536a9829152eed525d0 to your computer and use it in GitHub Desktop.
Metode string part 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = "Ruby" | |
puts a | |
puts "Objek ID #{a.object_id}" | |
b = a.succ() | |
puts b | |
puts "Objek ID: #{b.object_id}" | |
c = a.succ! | |
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