Sha256: 0bff73d62647336b53b735ed6660a176cef54609aec7ec06ee69bfaf6e0f9d8e

Contents?: true

Size: 309 Bytes

Versions: 11

Compression:

Stored size: 309 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

11 entries across 11 versions & 2 rubygems

Version Path
ruby-graphviz-1.2.5 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.2.4 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.2.3 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.2.2 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.2.1 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.2.0 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.1.0 lib/graphviz/types/esc_string.rb
ruby-graphviz_c-1.1.1 lib/graphviz/types/esc_string.rb
ruby-graphviz_c-1.1.0 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.0.9 lib/graphviz/types/esc_string.rb
ruby-graphviz-1.0.8 lib/graphviz/types/esc_string.rb