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



10
11
12
# File 'lib/test_prof/recipes/rspec/let_it_be.rb', line 10

def block
  @block
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



10
11
12
# File 'lib/test_prof/recipes/rspec/let_it_be.rb', line 10

def scope
  @scope
end

Instance Method Details

#call(record, config) ⇒ Object



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

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