Class: R2CORBA::CORBA::TypeCode::ObjectRef
- Inherits:
-
IdentifiedTypeCode
- Object
- R2CORBA::CORBA::TypeCode
- IdentifiedTypeCode
- R2CORBA::CORBA::TypeCode::ObjectRef
- Defined in:
- lib/corba/cbase/Typecode.rb,
lib/corba/jbase/Typecode.rb,
lib/corba/common/Typecode.rb
Overview
Valuebox
Constant Summary
Constants inherited from R2CORBA::CORBA::TypeCode
LongLongRange, LongRange, OctetRange, ShortRange, ULongLongRange, ULongRange, UShortRange
Instance Attribute Summary
Attributes inherited from R2CORBA::CORBA::TypeCode
Instance Method Summary collapse
- #get_type ⇒ Object
-
#initialize(*args) ⇒ ObjectRef
constructor
A new instance of ObjectRef.
Methods inherited from R2CORBA::CORBA::TypeCode
_tc, _wrap_native, #concrete_base_type, #content_type, #default_index, #discriminator_type, #equal?, #equivalent?, #fixed_digits, #fixed_scale, from_native, #get_compact_typecode, get_primitive_tc, #id, #is_recursive_tc?, #kind, #length, #member_count, #member_label, #member_name, #member_type, #member_visibility, #name, native_kind, #needs_conversion, register_id_type, #resolved_tc, #type_modifier, typecode_for_id, typecodes_for_name, #validate
Constructor Details
#initialize(*args) ⇒ ObjectRef
Returns a new instance of ObjectRef.
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/corba/cbase/Typecode.rb', line 256 def initialize(*args) if CORBA::Native::TypeCode === args.first @tc_ = args.first @type = CORBA::Object super(@tc_.id) else id, name, type = args begin @tc_ = CORBA::Native::TypeCode.create_tc(TK_OBJREF, id.to_s, name.to_s) rescue ::NativeException CORBA::Exception.native2r($!) end @type = type super(id) end end |
Instance Method Details
#get_type ⇒ Object
757 758 759 |
# File 'lib/corba/common/Typecode.rb', line 757 def get_type @type end |