Class: TestProf::LetItBe::Modifier

Inherits:
Struct
  • Object
show all
Defined in:
lib/test_prof/recipes/rspec/let_it_be.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



12
13
14
# File 'lib/test_prof/recipes/rspec/let_it_be.rb', line 12

def block
  @block
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



12
13
14
# File 'lib/test_prof/recipes/rspec/let_it_be.rb', line 12

def scope
  @scope
end

Instance Method Details

#call(record, config) ⇒ Object



13
14
15
# File 'lib/test_prof/recipes/rspec/let_it_be.rb', line 13

def call(record, config)
  block.call(record, config)
end