Ruby Koans about_objects.rb

 * (almost) everything in Ruby is an object

 * even nil & objects are objects.

[#54145627]
Ruby Koans about_objects.rb

 * objects can be made into strings

 * nil returns "", ! an empty string

[#54145627]
Ruby Koans about_objects.rb

 * objects can be inspected with .inspect

 * returns the contents of the object

 * nil returns "nil", unusual!

[#54145627]
Ruby Koans about_objects.rb

 * objects have ids of class Fixnum

 * id found with .object_id

 * Are id's unique?

[#54145627]
Ruby Koans about_objects.rb

 * objects do have unique id's!

[#54145627]
Ruby Koans about_objects.rb

 * small integers have fixed ids

 * ids have a pattern.

[#54145627]
Ruby Koans about_objects.rb

 * all objects do have unique ids!

 * even .clone creates unique id.

[#54145627]