def some_method(&block)
yield
end
some_method { puts 'hello from Proc'}
# Напечатает hello from Proc
def some_method(agrument,&block)
yield (agrument)
end
some_method('ITS ARGUMENT') {|argument| puts "hello from Proc with #{argument}"}
# Напечатает hello from Proc with ITS ARGUMENT