Sha256: 09ed1133c2624ab6b4a73b2da81ada2c03a519e773467956345e339bdd777835
Contents?: true
Size: 531 Bytes
Versions: 7
Compression:
Stored size: 531 Bytes
Contents
module Simplabs module Excellent module Parsing class CvarContext < SexpContext #:nodoc: def initialize(exp, parent) super @name = exp[1].to_s.sub(/^@+/, '') end def full_name return @name if @parent.blank? full_name = @name parent = @parent parent = parent.parent until parent.is_a?(ClassContext) || parent.is_a?(ModuleContext) full_name = "#{parent.full_name}.#{full_name}" end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems