-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Neyaz/everything_is_an_object
translate _gitbook/syntax_and_semantics/everything_is_an_object.md
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Everything is an object | ||
# Все - объект | ||
|
||
In Crystal everything is an object. The definition of an object boils down to these points: | ||
В Crystal все - это объект. Описание объекта определяет следущие свойства: | ||
|
||
* 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. | ||
Внутрнее состояние объекта может быть получено только через вызов методов. |