method
add_options

1.3.0 -
Show latest stable
-
0 notes -
Class: Spec::Example::ArgsAndOptions
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
add_options(args, options={})
public
Hide source
# File lib/spec/example/args_and_options.rb, line 9 def add_options(args, options={}) # :nodoc: args << {} unless Hash === args.last args.extend WithOptions args.options.merge!(options) args.options end