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



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

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



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

def block
  @block
end

#method_nameObject

Returns the value of attribute method_name

Returns:

  • (Object)

    the current value of method_name



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

def method_name
  @method_name
end

Instance Method Details

#playback_onto(group) ⇒ Object



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

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