Module: RuboCop::RSpec::TopLevelDescribe
- Included in:
- Cop::RSpec::DescribeClass, Cop::RSpec::DescribeMethod, Cop::RSpec::DescribedClass, Cop::RSpec::FilePath, Cop::RSpec::MultipleDescribes
- Defined in:
- lib/rubocop/rspec/top_level_describe.rb
Overview
Helper methods for top level describe cops
Instance Method Summary collapse
Instance Method Details
#on_send(node) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/rubocop/rspec/top_level_describe.rb', line 7 def on_send(node) return unless respond_to?(:on_top_level_describe) return unless top_level_describe?(node) _receiver, _method_name, *args = *node on_top_level_describe(node, args) end |