Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubyProc vs lambda usageSingle-choice MCQ

A block passed to define_method is not written as a lambda. How does it treat argument count?

class K define_method(:m) { |a, b| [a, b] } end K.new.m(1)