Module: Spec::Example::ArgsAndOptions
- Included in:
- DSL::Main, ExampleGroupFactory::ClassMethods, ExampleGroupMethods, Runner::Configuration
- Defined in:
- lib/spec/example/args_and_options.rb
Defined Under Namespace
Modules: WithOptions
Instance Method Summary collapse
-
#add_options(args, options = {}) ⇒ Object
:nodoc:.
-
#args_and_options(*args) ⇒ Object
:nodoc:.
-
#set_location(options, location) ⇒ Object
:nodoc:.
Instance Method Details
#add_options(args, options = {}) ⇒ Object
:nodoc:
9 10 11 12 13 14 |
# File 'lib/spec/example/args_and_options.rb', line 9 def (args, ={}) # :nodoc: args << {} unless Hash === args.last args.extend WithOptions args..merge!() args. end |
#args_and_options(*args) ⇒ Object
:nodoc:
4 5 6 7 |
# File 'lib/spec/example/args_and_options.rb', line 4 def (*args) # :nodoc: = Hash === args.last ? args.pop : {} return args, end |
#set_location(options, location) ⇒ Object
:nodoc:
16 17 18 |
# File 'lib/spec/example/args_and_options.rb', line 16 def set_location(, location) # :nodoc: [:location] ||= location end |