Module: Qrb::Syntax::SetType

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

Instance Method Summary collapse

Instance Method Details

#compile(factory) ⇒ Object



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

def compile(factory)
  elm_type = type.compile(factory)
  factory.set(elm_type)
end

#to_astObject



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

def to_ast
  [:set_type, type.to_ast]
end