Method: RuboCop::Cop::Style::FormatStringToken#on_str
- Defined in:
- lib/rubocop/cop/style/format_string_token.rb
permalink #on_str(node) ⇒ Object
[View source]
113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/rubocop/cop/style/format_string_token.rb', line 113 def on_str(node) return if format_string_token?(node) || use_allowed_method?(node) detections = collect_detections(node) return if detections.empty? return if allowed_unannotated?(detections) detections.each do |detected_sequence, token_range| check_sequence(detected_sequence, token_range) end end |