RuboCop::Cop
This cops checks for use of `extend self` in a module.
@example
module Test
extend self ...
end
# File lib/rubocop/cop/style/module_function.rb, line 19 def on_module(node) _name, body = *node return unless body && body.type == :begin body.children.each do |body_node| add_offense(body_node, :expression) if body_node == TARGET_NODE end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.