Library/Homebrew/rubocops/extend/formula_cop.rb
def string_content(node)
        case node.type
        when :str
          node.str_content
        when :dstr
          node.each_child_node(:str).map(&:str_content).join
        when :const
          node.const_name
        when :sym
          node.children.first.to_s
        else
          ""
        end
      end
# Returns the string representation if node is of type str(plain) or dstr(interpolated) or const
Returns the string representation if node is of type str(plain) or dstr(interpolated) or const
Returns the string representation if node is of type str ( plain ) or dstr ( interpolated ) or const
def string_content(node)
        case node.type
        when :str
          node.str_content
        when :dstr
          node.each_child_node(:str).map(&:str_content).join
        when :const
          node.const_name
        when :sym
          node.children.first.to_s
        else
          ""
        end
      end
def string_content ( node ) case node . type when :str node . str_content when :dstr node . each_child_node ( :str ) . map ( & :str_content ) . join when :const node . const_name when :sym node . children . first . to_s else "" end end
Returns the string representation if node is of type str(plain) or dstr(interpolated) or const
Returns the string representation if node is of type str ( plain ) or dstr ( interpolated ) or const
node