Module: Drawght
- Defined in:
- lib/drawght.rb,
lib/drawght/mapper.rb,
lib/drawght/parser.rb,
lib/drawght/version.rb,
lib/drawght/compiler.rb
Defined Under Namespace
Modules: ArrayExtensions, HashExtensions, Mapper, Parser
Classes: Compiler
Constant Summary
collapse
- VERSION =
"1.1.0"
- RELEASE_DATE =
"2025-12-22"
- CHANGESET =
[
"Syntax validation.",
"Refined extension methods have been moved to their respective modules.",
"Syntax for getting the length of a collection.",
]
Class Method Summary
collapse
Class Method Details
.compile(template, data) ⇒ Object
14
15
16
|
# File 'lib/drawght.rb', line 14
def self.compile(template, data)
load_template(template).compile data
end
|
.load_template(template) ⇒ Object
10
11
12
|
# File 'lib/drawght.rb', line 10
def self.load_template(template)
Compiler.new template
end
|