Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 346 Bytes

everything_is_an_object.md

File metadata and controls

10 lines (6 loc) · 346 Bytes

Everything is an object

In Crystal everything is an object. The definition of an object boils down to these points:

  • It has a type
  • It can respond to some methods

This is everything you can know about an object: its type and whether it responds to some method.

An object's internal state, if any, can only be queried by invoking methods.