Module: Ice::Proxy_mixin::ClassMethods

Defined in:
ruby/Ice/Proxy.rb

Instance Method Summary collapse

Instance Method Details

#checkedCast(proxy, facet: nil, context: nil) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'ruby/Ice/Proxy.rb', line 15

def checkedCast(proxy, facet: nil, context: nil)
    if proxy.nil?
        return nil
    end

    unless facet.nil?
        proxy = proxy.ice_facet(facet)
    end

    if proxy.ice_isA(self::ICE_ID, context)
        return self::create(proxy)
    else
        return nil
    end
end

#ice_staticIdObject



11
12
13
# File 'ruby/Ice/Proxy.rb', line 11

def ice_staticId()
    self::ICE_ID
end

#uncheckedCast(proxy, facet: nil) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
# File 'ruby/Ice/Proxy.rb', line 31

def uncheckedCast(proxy, facet: nil)
    if proxy.nil?
        return nil
    end

    unless facet.nil?
        proxy = proxy.ice_facet(facet)
    end

    self::create(proxy)
end