Class: Mingle::MingleIdentifiedName

Inherits:
BitGirderClass
  • Object
show all
Includes:
StringParser
Defined in:
lib/mingle.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from StringParser

included

Class Method Details

.impl_parse(s) ⇒ Object



2073
2074
2075
# File 'lib/mingle.rb', line 2073

def self.impl_parse( s )
    MingleParser.consume_string( s ) { |p| p.expect_identified_name }
end

Instance Method Details

#external_formObject



2083
2084
2085
2086
2087
2088
# File 'lib/mingle.rb', line 2083

def external_form
    
    @names.inject( @namespace.format( ID_STYLE_LC_HYPHENATED ) ) do |s, nm|
        s << "/" << nm.format( ID_STYLE_LC_HYPHENATED )
    end
end

#hashObject



2078
2079
2080
# File 'lib/mingle.rb', line 2078

def hash
    [ @namespace, @names ].hash
end