Class: RRT_RUBY::RRTDeployment::Instance
- Inherits:
-
RRT_RUBY::RRTGeneric::Element
- Object
- RRT_RUBY::RRTGeneric::Element
- RRT_RUBY::RRTDeployment::Instance
- Defined in:
- lib/rrt_ruby/rrt_deployment.rb
Instance Attribute Summary
Attributes inherited from RRT_RUBY::RRTGeneric::Element
#documentation, #name, #qualifiedname, #stereotype
Instance Method Summary collapse
-
#initialize(element) ⇒ Instance
constructor
A new instance of Instance.
- #to_s ⇒ Object
Constructor Details
#initialize(element) ⇒ Instance
Returns a new instance of Instance.
40 41 42 43 44 45 46 47 |
# File 'lib/rrt_ruby/rrt_deployment.rb', line 40 def initialize element begin super(element) @component=element.Component rescue raise RRTGeneric::ElementException.new(element),"error while initialising element #{$!}" end end |
Instance Method Details
#to_s ⇒ Object
48 49 50 |
# File 'lib/rrt_ruby/rrt_deployment.rb', line 48 def to_s super()+", #{@component}" end |