Module: RSpec::Hal::Matchers::Document

Extended by:
Matchers::DSL
Included in:
RSpec::Hal::Matchers
Defined in:
lib/rspec/hal/matchers.rb

Defined Under Namespace

Modules: ForwardCompat

Class Method Summary collapse

Class Method Details

.matcher(name, &blk) ⇒ Object



62
63
64
65
66
67
68
# File 'lib/rspec/hal/matchers.rb', line 62

def matcher(name, &blk)
  super name do |*args|
    extend ForwardCompat unless respond_to? :failure_message

    self.instance_exec *args, &blk
  end
end