Sha256: 107378c53209516ab654285f79843b07d2d3a2c131ecc70366ee919fb2e70d80

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 Bytes

Contents

class GraphViz
  class Types
    class Common
      def initialize( data )
        @data = check(data)
      end
      
      def output
        return @data
      end
      
      def source
        return @data
      end
    end
    
    Dir.glob( File.dirname( File.expand_path(__FILE__) )+"/types/*.rb" ).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

5 entries across 5 versions & 1 rubygems

Version Path
ruby-graphviz-1.0.0 lib/graphviz/types.rb
ruby-graphviz-0.9.21 lib/graphviz/types.rb
ruby-graphviz-0.9.20 lib/graphviz/types.rb
ruby-graphviz-0.9.19 lib/graphviz/types.rb
ruby-graphviz-0.9.18 lib/graphviz/types.rb