Class: Expressir::Express::Builders::SchemaBodyDeclBuilder
- Inherits:
-
Object
- Object
- Expressir::Express::Builders::SchemaBodyDeclBuilder
- Defined in:
- lib/expressir/express/builders/schema_body_decl_builder.rb
Overview
Builds schema_body_declaration nodes - dispatches to declaration or rule.
Instance Method Summary collapse
Instance Method Details
#call(ast_data) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/expressir/express/builders/schema_body_decl_builder.rb', line 8 def call(ast_data) if ast_data[:declaration] Builder.build({ declaration: ast_data[:declaration] }) elsif ast_data[:rule_decl] Builder.build({ rule_decl: ast_data[:rule_decl] }) end end |