Class: RSpec::Variants::ExampleGroupMethods::Condition
- Inherits:
-
Object
- Object
- RSpec::Variants::ExampleGroupMethods::Condition
- Defined in:
- lib/rspec/variants.rb
Overview
This class is used to hold an instance of a condition by holding each of the attributes specified for that condition.
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) ⇒ Condition
constructor
A new instance of Condition.
Constructor Details
#initialize(arg_names, &block) ⇒ Condition
Returns a new instance of Condition.
13 14 15 16 |
# File 'lib/rspec/variants.rb', line 13 def initialize(arg_names, &block) @arg_names = arg_names @block = block end |
Instance Attribute Details
#arg_names ⇒ Object (readonly)
Returns the value of attribute arg_names.
11 12 13 |
# File 'lib/rspec/variants.rb', line 11 def arg_names @arg_names end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
11 12 13 |
# File 'lib/rspec/variants.rb', line 11 def block @block end |