Sha256: f8079596f69ff732d2dd612561988083491248cc05c942f90ca1f80b0ba8e759
Contents?: true
Size: 674 Bytes
Versions: 82
Compression:
Stored size: 674 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common functionality for working with string interpolations. # # @abstract Subclasses are expected to implement {#on_interpolation}. module Interpolation def on_dstr(node) on_node_with_interpolations(node) end alias on_xstr on_dstr alias on_dsym on_dstr alias on_regexp on_dstr def on_node_with_interpolations(node) node.each_child_node(:begin) do |begin_node| on_interpolation(begin_node) end end # @!method on_interpolation(begin_node) # Inspect the `:begin` node of an interpolation end end end
Version data entries
82 entries across 70 versions & 6 rubygems