lib/rubocop/rspec/example.rb in rubocop-rspec-2.2.0 vs lib/rubocop/rspec/example.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -2,11 +2,16 @@
module RuboCop
module RSpec
# Wrapper for RSpec examples
class Example < Concept
+ # @!method extract_doc_string(node)
def_node_matcher :extract_doc_string, '(send _ _ $_ ...)'
+
+ # @!method extract_metadata(node)
def_node_matcher :extract_metadata, '(send _ _ _ $...)'
+
+ # @!method extract_implementation(node)
def_node_matcher :extract_implementation, '(block send args $_)'
def doc_string
extract_doc_string(definition)
end