Class: RSpec::Parameterized::Core::ExampleGroupMethods::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/parameterized/core.rb

Overview

capsulize parameter attributes

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



14
15
16
# File 'lib/rspec/parameterized/core.rb', line 14

def block
  @block
end