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)
- 
  
      - (Object) block 
  
      readonly
    Returns the value of attribute block. 
- 
  
      - (Object) options 
  
      readonly
    Returns the value of attribute options. 
Instance Method Summary (collapse)
- 
  
      - (Hook) initialize(block, options) 
  
    constructor
    A new instance of Hook. 
- - (Boolean) options_apply?(example_or_group)
Constructor Details
- (Hook) initialize(block, options)
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
- (Object) block (readonly)
Returns the value of attribute block
| 7 8 9 | # File 'lib/rspec/core/hooks.rb', line 7 def block @block end | 
- (Object) options (readonly)
Returns the value of attribute options
| 7 8 9 | # File 'lib/rspec/core/hooks.rb', line 7 def @options end | 
Instance Method Details
- (Boolean) options_apply?(example_or_group)
| 14 15 16 | # File 'lib/rspec/core/hooks.rb', line 14 def (example_or_group) example_or_group.all_apply?() end |