, , . :
def calling_method(&block)
puts 'before'
puts yield
puts 'after'
end
calling_method :
,
calling_method { 3 }
, , next :
calling_method { next 23 }
next return procs. proc ( nil ).
, , , break :
p calling_method { break 23 }
break Ruby, , proc AND, , , , break.
, , , called_method, calling_method, .
, called_method and return .