Module: R2CORBA::CORBA::ValueBase

Defined in:
lib/corba/cbase/Values.rb,
lib/corba/jbase/Values.rb,
lib/corba/common/Values.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/corba/cbase/Values.rb', line 26

def self.included(mod)
  mod.module_eval do
    include CORBA::AbstractValueBase unless self.include?(CORBA::AbstractValueBase)

    alias :org_kind_of? :kind_of?
    def kind_of?(mod)
      if mod < CORBA::AbstractValueBase && mod.const_defined?(:Intf)
        org_kind_of?(mod::Intf)
        #super(mod::Intf)   ## problematic with Ruby 1.9.2 (known bug)
      else
        org_kind_of?(mod)
        #super              ## problematic with Ruby 1.9.2 (known bug)
      end
    end
    alias :is_a? :kind_of?
  end
end

Instance Method Details

#_marshal_with(os, &block) ⇒ Object



44
45
46
47
48
# File 'lib/corba/cbase/Values.rb', line 44

def _marshal_with(os, &block)
  self.pre_marshal(os)
  self.instance_eval(&block)
  self.post_marshal(os)
end

#_unmarshal_with(is, &block) ⇒ Object



50
51
52
53
54
# File 'lib/corba/cbase/Values.rb', line 50

def _unmarshal_with(is, &block)
  self.pre_unmarshal(is)
  self.instance_eval(&block)
  self.post_unmarshal(is)
end

#do_marshal(os) ⇒ Object



26
27
28
# File 'lib/corba/common/Values.rb', line 26

def do_marshal(os)
  self.marshal(os)
end

#do_unmarshal(is) ⇒ Object



30
31
32
# File 'lib/corba/common/Values.rb', line 30

def do_unmarshal(is)
  self.unmarshal(is)
end