class Zapata::Primitive::Var
Public Instance Methods
literal()
click to toggle source
# File lib/zapata/primitive/var.rb, line 12 def literal Diver.dive(node.body).literal end
node()
click to toggle source
# File lib/zapata/primitive/var.rb, line 6 def node name, body = @code.to_a type = @code.type OpenStruct.new(type: type, name: name, body: body) end
to_raw()
click to toggle source
# File lib/zapata/primitive/var.rb, line 16 def to_raw raw = Diver.dive(node.body).to_raw if raw.type == :super Missing.new(node.name).to_raw else raw end end