Method: Types::Enum#==

Defined in:
lib/solidity/typed/enum.rb

#==(other) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/solidity/typed/enum.rb', line 48

def ==( other )
  if other.is_a?( Integer ) && other == 0   ## note: only allow compare by zero (0) integer - why? why not?

    @value == 0
  else
    @value == _typecheck_enum!( other ).value
  end
end