Method: Enumeration::InstanceMethods#===

Defined in:
lib/zkruby/enum.rb

#===(other) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/zkruby/enum.rb', line 15

def === (other)
    case other
    when Symbol
        to_sym == other
    when Fixnum
        to_int == other
    else
        super
    end
end