lib/rubocop/cop/mixin/allowed_methods.rb in rubocop-0.89.1 vs lib/rubocop/cop/mixin/allowed_methods.rb in rubocop-0.90.0
- old
+ new
@@ -5,13 +5,15 @@
# This module encapsulates the ability to allow certain methods when
# parsing.
module AllowedMethods
private
+ # @api public
def allowed_method?(name)
allowed_methods.include?(name.to_s)
end
+ # @api public
def allowed_methods
cop_config.fetch('AllowedMethods', [])
end
end
end