Module: Ast
- Defined in:
- lib/ast.rb
Overview
This module is intended to be used for building trainings from the domain specific language AST-TDL.
Defined Under Namespace
Classes: Training
Class Method Summary collapse
-
.build(&block) ⇒ Object
Building a new training from the domain specific language.
Class Method Details
.build(&block) ⇒ Object
Building a new training from the domain specific language. Params:
block
-
training data
17 18 19 20 21 |
# File 'lib/ast.rb', line 17 def self.build(&block) training = Training.new() training.instance_eval(&block) training end |