Sha256: f22deb11b6727e8fb4004cc83df38698994526e2a1ad8c9570214c5677a7504f
Contents?: true
Size: 351 Bytes
Versions: 1
Compression:
Stored size: 351 Bytes
Contents
# frozen_string_literal: true module Zapata module Primitive class Const < Basic def node modul, klass = @code.to_a type = @code.type OpenStruct.new(modul: modul, klass: klass, type: type) end def to_raw Raw.new(:const, [node.modul, node.klass].compact.join('::')) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zapata-1.0.0 | lib/zapata/primitive/const.rb |