Sha256: 1c155ef6a9520c07555a6cf5bc86b6a3a4bde4ab48a6265a45cff55300a7357f

Contents?: true

Size: 394 Bytes

Versions: 10

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module AST
    # A node extension for `str`, `dstr` and `xstr` nodes. This will be used
    # in place of a plain node when the builder constructs the AST, making
    # its methods available to all `str` nodes within RuboCop.
    class StrNode < Node
      def heredoc?
        loc.is_a?(Parser::Source::Map::Heredoc)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rubocop-0.57.2/lib/rubocop/ast/node/str_node.rb
rubocop-0.57.2 lib/rubocop/ast/node/str_node.rb
rubocop-0.57.1 lib/rubocop/ast/node/str_node.rb
rubocop-0.57.0 lib/rubocop/ast/node/str_node.rb
rubocop-0.56.0 lib/rubocop/ast/node/str_node.rb
rubocop-0.55.0 lib/rubocop/ast/node/str_node.rb
rubocop-0.54.0 lib/rubocop/ast/node/str_node.rb
rubocop-0.53.0 lib/rubocop/ast/node/str_node.rb
rubocop-0.52.1 lib/rubocop/ast/node/str_node.rb
rubocop-0.52.0 lib/rubocop/ast/node/str_node.rb