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

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/parameterized.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.



17
18
19
# File 'lib/rspec/parameterized.rb', line 17

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.



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

def arg_names
  @arg_names
end

#blockObject (readonly)

Returns the value of attribute block.



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

def block
  @block
end