Module: Transpec::Syntax::Mixin::HaveMatcher
Instance Method Summary collapse
Instance Method Details
#have_matcher ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/transpec/syntax/mixin/have_matcher.rb', line 9 def have_matcher return @have_matcher if instance_variable_defined?(:@have_matcher) @have_matcher ||= begin if Have.target_node?(matcher_node, @runtime_data) Have.new(matcher_node, self, @source_rewriter, @runtime_data, @report) else nil end end end |