Sha256: e180a13e4c885264a7cb1feb1577060c1a6763d2b050cd933b01d8a805921abc

Contents?: true

Size: 448 Bytes

Versions: 7

Compression:

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-graphviz-1.0.7 lib/graphviz/types.rb
ruby-graphviz-1.0.6 lib/graphviz/types.rb
ruby-graphviz-1.0.5 lib/graphviz/types.rb
ruby-graphviz-1.0.4 lib/graphviz/types.rb
ruby-graphviz-1.0.3 lib/graphviz/types.rb
ruby-graphviz-1.0.2 lib/graphviz/types.rb
ruby-graphviz-1.0.1 lib/graphviz/types.rb