Sha256: 20572d664dc2517d1eb0fb1509e499551b3268e92ba149342ff174eec6c84ed3

Contents?: true

Size: 452 Bytes

Versions: 9

Compression:

Stored size: 452 Bytes

Contents

class GraphViz
  class Types
    class Common
      def initialize( data )
        @data = check(data)
      end
      
      def output
        return @data
      end
    end
    
    Dir.glob( File.dirname( File.expand_path(__FILE__) )+"/types/*" ).each do |f|
      autoload File.basename(f).gsub(File.extname(f), "").split( "_" ).map{|n| n.capitalize }.join.to_sym, f
    end
  end
end

#x = :EscString
#GraphViz::Types.const_get(x).new( "toto" )

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby-graphviz-0.9.16 lib/graphviz/types.rb
ruby-graphviz-0.9.15 lib/graphviz/types.rb
ruby-graphviz-0.9.14 lib/graphviz/types.rb
ruby-graphviz-0.9.13 lib/graphviz/types.rb
ruby-graphviz-0.9.12 lib/graphviz/types.rb
ruby-graphviz-0.9.11 lib/graphviz/types.rb
ruby-graphviz-0.9.10 lib/graphviz/types.rb
ruby-graphviz-0.9.9 lib/graphviz/types.rb
ruby-graphviz-0.9.8 lib/graphviz/types.rb