Sha256: 3fe9d1661e58451258b3392024086664f0e18889e5932f53584c35a0e385f039

Contents?: true

Size: 394 Bytes

Versions: 10

Compression:

Stored size: 394 Bytes

Contents

class GraphViz
  class Types
    class LblString < Common
      def check(data)
        return data
      end
      
      def output
        html = /^<([<|(^<)*<].*)>$/m.match(@data)
        if html != nil
          "<#{html[1]}>"
        else
          @data.to_s.inspect.gsub( "\\\\", "\\" )
        end
      end
      
      alias :to_gv :output
      alias :to_s :output
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-graphviz-1.0.0 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.21 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.20 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.19 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.18 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.17 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.16 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.15 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.14 lib/graphviz/types/lbl_string.rb
ruby-graphviz-0.9.13 lib/graphviz/types/lbl_string.rb