FrozenCrash/Zadachi — comment on commit d3d4d1165756ec18b6241091dacc97a9b2993578
File:  line 0
By gmile:

Now there's even more things that you can optimize in your code.

Every time you write a method, a method return something. It can return some object (like string `"Hello, world"`, numbers like `6` or `519` or other complicated objects).

The return operation in method looks like this (several variants):

```ruby
# 1 -- now every time my_method is called it'll return number 6. "x" is redundant here
def my_method
x = 6
end

# 2 -- everything is clear: we specify that the method should return 6
def my_method_2
return 6
end

# 3 -- the method return something that is located at the last line of the method -- the simplest option; should be used in most cases
def my_method_3
6
end
```