Does the yield mean that it will puts "We're back in the method!" instead of "We're in the method!" and "Yielding to the block..."


#1



Does the yield mean that it will puts "We're back in the method!" instead of "We're in the method!" and "Yielding to the block..."

https://www.codecademy.com/courses/ruby-beginner-en-L3ZCI/0/3?curriculum_id=5059f8619189a5000201fbcb


def block_test
  puts "We're in the method!"
  puts "Yielding to the block..."
  yield
  puts "We're back in the method!"
end

block_test { puts ">>> We're in the block!" }


#2

Not instead of, but AFTER the yield to the block_test block parameter.