Class: RSpec::Core::SharedContext::Recording

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args


32
33
34
# File 'lib/rspec/core/shared_context.rb', line 32

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block


32
33
34
# File 'lib/rspec/core/shared_context.rb', line 32

def block
  @block
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name


32
33
34
# File 'lib/rspec/core/shared_context.rb', line 32

def method_name
  @method_name
end

Instance Method Details

#playback_onto(group) ⇒ Object


33
34
35
# File 'lib/rspec/core/shared_context.rb', line 33

def playback_onto(group)
  group.__send__(method_name, *args, &block)
end