module RuboCop::RSpec::Node
Public Instance Methods
Source
# File lib/rubocop/rspec/node.rb, line 9 def recursive_literal_or_const? case type when :begin, :pair, *AST::Node::COMPOSITE_LITERALS children.compact.all?(&:recursive_literal_or_const?) else literal? || const_type? end end
In various cops we want to regard const as literal although it’s not strictly literal.