class Mingle::MingleNamespace

Public Class Methods

create( opts ) click to toggle source
# File lib/mingle.rb, line 1807
def self.create( opts )
    self.send( :new, opts )
end
impl_parse( s ) click to toggle source
# File lib/mingle.rb, line 1811
def self.impl_parse( s )
    MingleParser.consume_string( s ) { |p| p.expect_namespace }
end

Public Instance Methods

==( other ) click to toggle source
# File lib/mingle.rb, line 1835
def ==( other )
    other.is_a?( MingleNamespace ) &&
        other.parts == @parts && other.version == @version
end
eql?( other ) click to toggle source
# File lib/mingle.rb, line 1846
def eql?( other )
    self == other
end
external_form() click to toggle source
# File lib/mingle.rb, line 1823
def external_form
    format( ID_STYLE_LC_CAMEL_CAPPED )
end
Also aliased as: to_s
format( id_styl ) click to toggle source
# File lib/mingle.rb, line 1816
def format( id_styl )
    parts = @parts.map { |p| p.format( id_styl ) }
    ver = @version.format( id_styl )
    "#{parts.join( ":" )}@#{ver}"
end
hash() click to toggle source
# File lib/mingle.rb, line 1841
def hash
    @parts.hash | @version.hash
end
inspect() click to toggle source
# File lib/mingle.rb, line 1830
def inspect
    to_s.inspect
end
to_s()
Alias for: external_form