--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Matches optional parameters if available.
- !ruby/struct:SM::Flow::VERB 
  body: "  object = mock()\n  object.expects(:method_1).with(1, 2, optionally(3, 4))\n  object.method_1(1, 2)\n  # no error raised\n\n  object = mock()\n  object.expects(:method_1).with(1, 2, optionally(3, 4))\n  object.method_1(1, 2, 3)\n  # no error raised\n\n  object = mock()\n  object.expects(:method_1).with(1, 2, optionally(3, 4))\n  object.method_1(1, 2, 3, 4)\n  # no error raised\n\n  object = mock()\n  object.expects(:method_1).with(1, 2, optionally(3, 4))\n  object.method_1(1, 2, 3, 5)\n  # error raised, because optional parameters did not match\n"
full_name: Mocha::ParameterMatchers#optionally
is_singleton: false
name: optionally
params: " optionally(*parameter_matchers) -> parameter_matcher\n"
visibility: public
