Sha256: 1a1fd819655898156278db0061f2addc43ae96e2d220e88681332a4f00d0342b

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 Bytes

Contents

# >> x = "hello\n\t\\l\"world\""
# => "hello\n\t\\l\"world\""
# >> puts x.inspect.gsub( "\\\\", "\\" )
# "hello\n\t\l\"world\""
#
# OR
# 
# >> x = 'hello\n\t\l"world"'
# => "hello\\n\\t\\l\"world\""
# >> puts x.inspect.gsub( "\\\\", "\\" )
# "hello\n\t\l\"world\""

class GraphViz
  class Types
    class ArrowType < 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/arrow_type.rb
ruby-graphviz-1.0.6 lib/graphviz/types/arrow_type.rb
ruby-graphviz-1.0.5 lib/graphviz/types/arrow_type.rb
ruby-graphviz-1.0.4 lib/graphviz/types/arrow_type.rb
ruby-graphviz-1.0.3 lib/graphviz/types/arrow_type.rb
ruby-graphviz-1.0.2 lib/graphviz/types/arrow_type.rb
ruby-graphviz-1.0.1 lib/graphviz/types/arrow_type.rb