Class: RSpec::Variants::ExampleGroupMethods::Condition

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_namesObject (readonly)

Returns the value of attribute arg_names.



11
12
13
# File 'lib/rspec/variants.rb', line 11

def arg_names
  @arg_names
end

#blockObject (readonly)

Returns the value of attribute block.



11
12
13
# File 'lib/rspec/variants.rb', line 11

def block
  @block
end