Class: Syskit::DRoby::V5::TypelibTypeModelDumper::DRoby
- Defined in:
- lib/syskit/droby/v5/droby_dump.rb
Overview
Class used to transfer the definition of a type
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(name, xml) ⇒ DRoby
constructor
A new instance of DRoby.
- #proxy(peer) ⇒ Object
Constructor Details
#initialize(name, xml) ⇒ DRoby
Returns a new instance of DRoby
143 144 145 146 |
# File 'lib/syskit/droby/v5/droby_dump.rb', line 143 def initialize(name, xml) @name = name @xml = xml end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
142 143 144 |
# File 'lib/syskit/droby/v5/droby_dump.rb', line 142 def name @name end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml
142 143 144 |
# File 'lib/syskit/droby/v5/droby_dump.rb', line 142 def xml @xml end |
Instance Method Details
#proxy(peer) ⇒ Object
147 148 149 150 151 152 153 |
# File 'lib/syskit/droby/v5/droby_dump.rb', line 147 def proxy(peer) if xml reg = Typelib::Registry.from_xml(xml) peer.object_manager.typelib_registry.merge(reg) end peer.object_manager.typelib_registry.get(name) end |