Sha256: 3b35b5d0591253be0ede8e4a9c270e80b063ae75b96235b90610669daa001515
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true module Zapata module Primitive class Var < Base def node name, body = @code.to_a type = @code.type OpenStruct.new(type: type, name: name, body: body) end def literal Diver.dive(node.body).literal end def to_raw raw = Diver.dive(node.body).to_raw if raw.type == :super Missing.new(node.name).to_raw else raw end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zapata-1.0.0 | lib/zapata/primitive/var.rb |