Module: Qrb::Syntax::BuiltinType

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

Instance Method Summary collapse

Methods included from Support

#resolve_ruby_const

Instance Method Details

#compile(factory) ⇒ Object



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

def compile(factory)
  clazz = resolve_ruby_const(builtin_type_name.to_s)
  factory.builtin(clazz)
end

#to_astObject



11
12
13
# File 'lib/qrb/syntax/builtin_type.rb', line 11

def to_ast
  [:builtin_type, builtin_type_name.to_s]
end