Class: RSpec::Core::Example::ProcWithDelegateSource
- Inherits:
-
Proc
- Object
- Proc
- RSpec::Core::Example::ProcWithDelegateSource
- Defined in:
- lib/always_execute/rspec_execute.rb
Instance Attribute Summary collapse
-
#source_location ⇒ Object
readonly
Returns the value of attribute source_location.
Instance Method Summary collapse
-
#initialize(delegate, &block) ⇒ ProcWithDelegateSource
constructor
A new instance of ProcWithDelegateSource.
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_location ⇒ Object (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 |