Module: Qrb::Syntax::InlinePair

Includes:
Support
Defined in:
lib/qrb/syntax/inline_pair.rb

Instance Method Summary collapse

Methods included from Support

#resolve_ruby_const

Instance Method Details

#compile(factory) ⇒ Object



6
7
8
# File 'lib/qrb/syntax/inline_pair.rb', line 6

def compile(factory)
  [ dress.compile(factory), undress.compile(factory) ]
end

#to_astObject



10
11
12
# File 'lib/qrb/syntax/inline_pair.rb', line 10

def to_ast
  [ :inline_pair, dress.to_ast, undress.to_ast ]
end