How does block invocation differ from method invocation?

Technology CommunityCategory: RubyHow does block invocation differ from method invocation?
VietMX Staff asked 3 years ago

Ruby will throw an exception if more than the expected number of arguments are passed to a method. A block will simply ignore the extra values.