Module: Finitio::Syntax::RelationType

Includes:
Node
Defined in:
lib/finitio/syntax/type/relation_type.rb

Instance Method Summary collapse

Methods included from Node

included, #metadata, #resolve_ruby_const, #unique_names!

Instance Method Details

#compile(factory) ⇒ Object



8
9
10
# File 'lib/finitio/syntax/type/relation_type.rb', line 8

def compile(factory)
  factory.send(kind, heading.compile(factory))
end

#to_astObject



12
13
14
# File 'lib/finitio/syntax/type/relation_type.rb', line 12

def to_ast
  [ :"#{kind}_type", heading.to_ast ]
end