Parent

Class/Module Index [+]

Quicksearch

RSpec::Core::Hooks::Hook

Attributes

options[R]

Public Class Methods

new(options, &block) click to toggle source
# File lib/rspec/core/hooks.rb, line 8
def initialize(options, &block)
  @options = options
  @block = block
end

Public Instance Methods

call() click to toggle source
# File lib/rspec/core/hooks.rb, line 21
def call
  @block.call
end
options_apply?(group) click to toggle source
# File lib/rspec/core/hooks.rb, line 13
def options_apply?(group)
  !group || group.all_apply?(options)
end
to_proc() click to toggle source
# File lib/rspec/core/hooks.rb, line 17
def to_proc
  @block
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.