Module: Buildozer::Dsl
- Defined in:
- lib/buildozer/dsl.rb,
lib/buildozer/dsl/package.rb,
lib/buildozer/dsl/compiler.rb,
lib/buildozer/dsl/fragment.rb,
lib/buildozer/dsl/definition.rb,
lib/buildozer/dsl/compiler/validator.rb,
lib/buildozer/dsl/compiler/exceptions.rb
Defined Under Namespace
Modules: Compiler
Classes: Definition, Fragment, Package
Class Method Summary
collapse
Class Method Details
.compile(filename) ⇒ Object
13
14
15
16
17
|
# File 'lib/buildozer/dsl.rb', line 13
def self.compile(filename)
fragment = load(filename)
return Dsl::Compiler.compile(fragment)
end
|
.load(filename) ⇒ Object
6
7
8
9
10
11
|
# File 'lib/buildozer/dsl.rb', line 6
def self.load(filename)
definition = Dsl::Definition.new()
definition.instance_eval(File.read(filename), filename)
return definition
end
|