Module: Finitio::Syntax::HeadingExtra

Includes:
Node
Defined in:
lib/finitio/syntax/type/heading_extra.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/heading_extra.rb', line 8

def compile(factory)
  { allow_extra: extra_type ? extra_type.compile(factory) : true }
end

#to_astObject



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

def to_ast
  { allow_extra: extra_type ? extra_type.to_ast : true }
end