Class: RSpec::Core::Hooks::Hook
- Inherits:
-
Object
- Object
- RSpec::Core::Hooks::Hook
- Defined in:
- lib/rspec/core/hooks.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(block, options) ⇒ Hook
constructor
A new instance of Hook.
- #options_apply?(example_or_group) ⇒ Boolean
Constructor Details
#initialize(block, options) ⇒ Hook
Returns a new instance of Hook.
9 10 11 12 |
# File 'lib/rspec/core/hooks.rb', line 9 def initialize(block, ) @block = block @options = end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
7 8 9 |
# File 'lib/rspec/core/hooks.rb', line 7 def block @block end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/rspec/core/hooks.rb', line 7 def @options end |
Instance Method Details
#options_apply?(example_or_group) ⇒ Boolean
14 15 16 |
# File 'lib/rspec/core/hooks.rb', line 14 def (example_or_group) example_or_group.all_apply?() end |