Module: Qrb::Syntax::ExternalPair
- Includes:
- Support
- Defined in:
- lib/qrb/syntax/external_pair.rb
Instance Method Summary collapse
Methods included from Support
Instance Method Details
#compile(factory) ⇒ Object
6 7 8 9 |
# File 'lib/qrb/syntax/external_pair.rb', line 6 def compile(factory) clazz = resolve_ruby_const(builtin_type_name.to_s) [ clazz.method(:dress), clazz.method(:undress) ] end |
#to_ast ⇒ Object
11 12 13 |
# File 'lib/qrb/syntax/external_pair.rb', line 11 def to_ast [ :external_pair, builtin_type_name.to_s ] end |