What happens if a block is passed to a method that doesn't expect one in Ruby?
A. It silently ignores the block
B. It converts the block into a proc and passes it as an argument
C. It converts the block into a lambda and passes it as an argument
D. It raises an error
Answer: Option D

Join The Discussion