Module: RSpec::Matchers::DelegateMatcher::Block

Included in:
Delegate, Expected
Defined in:
lib/delegate_matcher/block.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block.



5
6
7
# File 'lib/delegate_matcher/block.rb', line 5

def block
  @block
end

Instance Method Details

#block_sourceObject



7
8
9
# File 'lib/delegate_matcher/block.rb', line 7

def block_source
  ProcSource.new(block)
end