Sha256: 510557f8172a9508945a893c3f633a8453ecfef731b67e70eac2aa2d2be1bd44

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

module Tinydot
  class Parser
    def self.parse(content)
      parser = Parser.new
      graph = parser.instance_eval(content)
      graph.to_dot
    end

    def digraph(title, &block)
      digraph = Digraph.new(title)
      digraph.instance_eval(&block)
      digraph
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tinydot-0.0.1 lib/tinydot/parser.rb