module RuboCop::Cop::Bugcrowd::Database

Private Instance Methods

within_change_or_up_method?(node) click to toggle source
# File lib/rubocop/cop/bugcrowd/database.rb, line 11
def within_change_or_up_method?(node)
  node.each_ancestor(:def).any? do |ancestor|
    ancestor.method?(:change) || ancestor.method?(:up)
  end
end