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
Version | Path |
---|---|
webidl-0.0.3 | lib/webidl/ast/scoped_name.rb |
webidl-0.0.2 | lib/webidl/ast/scoped_name.rb |
webidl-0.0.1 | lib/webidl/ast/scoped_name.rb |