Module: RuboCop::RSpec::TopLevelDescribe
- Extended by:
- NodePattern::Macros
- Included in:
- Cop::RSpec::DescribeClass, Cop::RSpec::DescribeMethod, Cop::RSpec::FilePath, Cop::RSpec::MultipleDescribes, Cop::RSpec::NestedGroups
- 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
9 10 11 12 13 14 |
# File 'lib/rubocop/rspec/top_level_describe.rb', line 9 def on_send(node) return unless respond_to?(:on_top_level_describe) return unless top_level_describe?(node) on_top_level_describe(node, node.arguments) end |