Parent

Methods

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Style::UnneededPercentX

This cop checks for usage of the %x() syntax when " would do.

Constants

MSG

Public Instance Methods

on_xstr(node) click to toggle source
# File lib/rubocop/cop/style/unneeded_percent_x.rb, line 9
def on_xstr(node)
  add_offense(node, :expression) if node.loc.expression.source !~ /`/
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.