class RuboCop::Cop::Lint::EmptyInterpolation
def on_dstr(node)
def on_dstr(node) node.children.select { |n| n.type == :begin }.each do |begin_node| add_offense(begin_node, :expression) if begin_node.children.empty? end end
def on_dstr(node) node.children.select { |n| n.type == :begin }.each do |begin_node| add_offense(begin_node, :expression) if begin_node.children.empty? end end