Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
method_missing always gets a block #3469
When method_missing gets triggered it always gets a block, even when not passed.
class MissingError def method_missing(method, *args, &block) if block_given? puts "block_given?" end if block puts "block" end end end missing_error = MissingError.new missing_error.hello
Expected result would be nothing, but both assume a block gets passed.