Module: Archieml

Defined in:
lib/archieml.rb,
lib/archieml/loader.rb,
lib/archieml/version.rb

Defined Under Namespace

Classes: Loader

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.load(aml) ⇒ Object



4
5
6
7
# File 'lib/archieml.rb', line 4

def self.load(aml)
  loader = Archieml::Loader.new()
  loader.load(aml)
end

.load_file(filename) ⇒ Object



9
10
11
12
13
# File 'lib/archieml.rb', line 9

def self.load_file(filename)
  loader = Archieml::Loader.new()
  stream = File.open(filename)
  loader.load(stream)
end