RuboCop::Cop
This cop checks for operators, variables and literals used in void context.
# File lib/rubocop/cop/lint/void.rb, line 17 def on_begin(node) expressions = *node expressions.drop_last(1).each do |expr| check_for_void_op(expr) check_for_literal(expr) check_for_var(expr) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.