Sha256: 18ebe56989fdf13f32f3ee9ecb0eaa86906f38f7b5b6261ad7bea78e3242637e

Contents?: true

Size: 321 Bytes

Versions: 7

Compression:

Stored size: 321 Bytes

Contents

class GraphViz
  class Types
    class EscString < Common
      def check(data)
        return data
      end
      
      def output
        return @data.to_s.inspect.gsub( "\\\\", "\\" )
      end
      
      alias :to_gv :output
      alias :to_s :output

      def to_ruby
         @data
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-graphviz-1.0.7 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.0.6 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.0.5 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.0.4 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.0.3 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.0.2 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.0.1 lib/graphviz/types/esc_string.rb