Class: Mingle::AtomicTypeReference

Inherits:
MingleTypeReference show all
Defined in:
lib/mingle.rb

Instance Method Summary collapse

Methods inherited from MingleTypeReference

impl_parse, #to_s

Methods included from StringParser

included

Instance Method Details

#external_formObject



1969
1970
1971
1972
1973
1974
1975
# File 'lib/mingle.rb', line 1969

def external_form
    
    res = @name.external_form.dup
    ( res << "~" << @restriction.external_form ) if @restriction

    res
end

#hashObject



1964
1965
1966
# File 'lib/mingle.rb', line 1964

def hash
    [ @name, @restriction ].hash
end