Class: Drymm::Shapes::Logic::Grouping
- Defined in:
- lib/drymm/shapes/logic.rb
Overview
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Rule
compiler, compiler_registry, namespace
Methods included from Branch
#auto_tuple, #auto_tuple!, #coerce_tuple, #retuple
Methods inherited from Node
Methods included from ASTMethods
Methods included from JSONMethods
Class Method Details
.coerce_tuple(type, rules) ⇒ Object
76 77 78 |
# File 'lib/drymm/shapes/logic.rb', line 76 def self.coerce_tuple((type, rules)) { type: type, rules: rules } end |
Instance Method Details
#to_ast ⇒ Object
72 73 74 |
# File 'lib/drymm/shapes/logic.rb', line 72 def to_ast [type, rules.map(&:to_ast)] end |