Method: Ramcrest::SuchThat::Matcher#initialize
- Defined in:
- lib/ramcrest/such_that.rb
#initialize(description, matcher_block) ⇒ Matcher
Returns a new instance of Matcher.
16 17 18 19 20 |
# File 'lib/ramcrest/such_that.rb', line 16 def initialize(description, matcher_block) singleton = class << self; self; end singleton.send(:define_method, :matches?, matcher_block) @description = description end |