[x] Use spaces between variables, operators, and values, e.g. - @name=name. Do it everywhere in your code, please.
[x] Use double quotes for string interpolation and single quotes for simple text. p @name + " ???!!! Хмм))) странное имя, но ладно " + @name + " так " + @name. Here you're using double quotes - so, change concatenation to interpolation. Do it everywhere in your code, please.
[x] Use 2 spaces instead of 4
[x] Use spaces between variables, operators, and values, e.g. -
@name=name
. Do it everywhere in your code, please.[x] Use double quotes for string interpolation and single quotes for simple text.
p @name + " ???!!! Хмм))) странное имя, но ладно " + @name + " так " + @name
. Here you're using double quotes - so, change concatenation to interpolation. Do it everywhere in your code, please.[x] https://github.com/fillson22/RubyHW/blob/31de03cec9d2be59830d3d1287b5652c1f03efdb/HW2/task2.rb#L14 What was the reason to use so many spaces here? This question is relevant to other common methods.
[x] https://github.com/fillson22/RubyHW/blob/31de03cec9d2be59830d3d1287b5652c1f03efdb/HW2/task2.rb#L103 Just simplify it to
@sleep
Do it everywhere in your code, please.[x] https://github.com/fillson22/RubyHW/blob/31de03cec9d2be59830d3d1287b5652c1f03efdb/HW2/task2.rb#L240 Ident
when
as deep ascase
.