Sha256: ff73cf6365f9b5773ce0fd89cd7b9a8b499d98cf888dffaee34c6dcd7cd2d234

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

require "wml_action/tag"
require "wml_action/parser.tab"

module WMLAction

  class Document

    attr_reader :root

    def initialize(root)
      @root = root
    end

    def self.from_file(filename)
      root = Parser.new.parse_file(filename)
      #TODO file exceptions
      Document.new(root)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wml_action-0.0.4 lib/wml_action/document.rb
wml_action-0.0.3 lib/wml_action/document.rb
wml_action-0.0.2 lib/wml_action/document.rb