Sha256: e961ea52ce67a1087ac3c9b256efa92375f37ab005d7cf24571e84949b6b7a22

Contents?: true

Size: 217 Bytes

Versions: 6

Compression:

Stored size: 217 Bytes

Contents

require_relative "./literal"

module Dentaku
  module AST
    class String < Literal
      def quoted
        %Q{"#{ escaped }"}
      end

      def escaped
        @value.gsub('"', '\"')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dentaku-3.5.4 lib/dentaku/ast/string.rb
dentaku-3.5.3 lib/dentaku/ast/string.rb
dentaku-3.5.2 lib/dentaku/ast/string.rb
dentaku_zevo-3.5.2 lib/dentaku/ast/string.rb
dentaku-3.5.1 lib/dentaku/ast/string.rb
dentaku-3.5.0 lib/dentaku/ast/string.rb