Module: RuboCop::RSpec::TopLevelDescribe
- Extended by:
- NodePattern::Macros
- Included in:
- Cop::RSpec::DescribeClass, Cop::RSpec::DescribeMethod, Cop::RSpec::DescribedClass, Cop::RSpec::FilePath, Cop::RSpec::LetSetup, Cop::RSpec::MultipleDescribes, Cop::RSpec::NestedGroups, Cop::RSpec::SubjectStub
- 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
11 12 13 14 15 16 17 18 |
# File 'lib/rubocop/rspec/top_level_describe.rb', line 11 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 |