Sha256: 1e17c3fec268cc485cd75e5eac69960c6d19492caaf9150f1b1c570aa43adf99
Contents?: true
Size: 482 Bytes
Versions: 23
Compression:
Stored size: 482 Bytes
Contents
module WebIDL module Ast class ScopedName < Node attr_reader :name def initialize(parent, name, opts = {}) super(parent) @name = name @relative = !!opts[:relative] end def qualified_name if relative? && @parent "#{@parent.qualified_name}::#{@name}" else "::#{@name}" end end def relative? @relative end end # ScopedName end # Ast end # WebIDL
Version data entries
23 entries across 23 versions & 1 rubygems