Sha256: 6c6c3caaecef94abb511a08583cc435c957fdc70756a520161f95d68bbaf1d0f
Contents?: true
Size: 537 Bytes
Versions: 5
Compression:
Stored size: 537 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
5 entries across 5 versions & 2 rubygems