class RuboCop::AST::DstrNode

A node extension for `dstr` nodes. This will be used in place of a plain node when the builder constructs the AST, making its methods available to all `dstr` nodes within RuboCop.

Public Instance Methods

value() click to toggle source
# File lib/rubocop/ast/node/dstr_node.rb, line 9
def value
  child_nodes.map do |child|
    child.respond_to?(:value) ? child.value : child.source
  end.join
end