Class: RSpec::Parameterized::Core::ExampleGroupMethods::Parameter
- Inherits:
-
Object
- Object
- RSpec::Parameterized::Core::ExampleGroupMethods::Parameter
- Defined in:
- lib/rspec/parameterized/core.rb
Overview
capsulize parameter attributes
Instance Attribute Summary collapse
-
#arg_names ⇒ Object
readonly
Returns the value of attribute arg_names.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Instance Method Summary collapse
-
#initialize(arg_names, &block) ⇒ Parameter
constructor
A new instance of Parameter.
Constructor Details
#initialize(arg_names, &block) ⇒ Parameter
Returns a new instance of Parameter.
16 17 18 |
# File 'lib/rspec/parameterized/core.rb', line 16 def initialize(arg_names, &block) @arg_names, @block = arg_names, block end |
Instance Attribute Details
#arg_names ⇒ Object (readonly)
Returns the value of attribute arg_names.
14 15 16 |
# File 'lib/rspec/parameterized/core.rb', line 14 def arg_names @arg_names end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
14 15 16 |
# File 'lib/rspec/parameterized/core.rb', line 14 def block @block end |