Module: Speccify::Extension

Defined in:
lib/speccify.rb

Overview

Object

Instance Method Summary collapse

Instance Method Details

#def_matcher(matcher_name, &block) ⇒ Object



155
156
157
158
159
# File 'lib/speccify.rb', line 155

def def_matcher(matcher_name, &block)
  self.class.send :define_method, matcher_name do |*args|
    Speccify::Functions::build_matcher(matcher_name, args, &block)
  end
end