Class: RSpec::Core::Example::ProcWithDelegateSource

Inherits:
Proc
  • Object
show all
Defined in:
lib/always_execute/rspec_execute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delegate, &block) ⇒ ProcWithDelegateSource

Returns a new instance of ProcWithDelegateSource.



9
10
11
12
# File 'lib/always_execute/rspec_execute.rb', line 9

def initialize(delegate, &block)
  @source_location = delegate.source_location
  super(&block)
end

Instance Attribute Details

#source_locationObject (readonly)

Returns the value of attribute source_location.



7
8
9
# File 'lib/always_execute/rspec_execute.rb', line 7

def source_location
  @source_location
end