Module: Qrb::Syntax::Definitions
- Defined in:
- lib/qrb/syntax/definitions.rb
Instance Method Summary collapse
Instance Method Details
#compile(system) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/qrb/syntax/definitions.rb', line 5 def compile(system) captures[:type_def].each do |node| node.compile(system) end system end |
#to_ast ⇒ Object
12 13 14 |
# File 'lib/qrb/syntax/definitions.rb', line 12 def to_ast captures[:type_def].map(&:to_ast) end |