class RuboCop::AST::RegexpNode

def interpolation?

Returns:
  • (Bool) - if regexp contains interpolation
def interpolation?
  children.any?(&:begin_type?)
end