Class: Mingle::MingleEnum

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

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



2106
2107
2108
2109
2110
# File 'lib/mingle.rb', line 2106

def ==( other )
    other.is_a?( MingleEnum ) && 
        other.type == @type &&
        other.value == @value
end

#to_sObject



2101
2102
2103
# File 'lib/mingle.rb', line 2101

def to_s
    "#{@type.external_form}.#{@value.external_form}"
end