Module: Qrb::Syntax::TupleType

Defined in:
lib/qrb/syntax/tuple_type.rb

Instance Method Summary collapse

Instance Method Details

#compile(factory) ⇒ Object



5
6
7
# File 'lib/qrb/syntax/tuple_type.rb', line 5

def compile(factory)
  factory.tuple(heading.compile(factory))
end

#to_astObject



9
10
11
# File 'lib/qrb/syntax/tuple_type.rb', line 9

def to_ast
  [:tuple_type, heading.to_ast]
end