Class: RRT_RUBY::RRTComponent::Library

Inherits:
Component show all
Defined in:
lib/rrt_ruby/rrt_component.rb

Overview

A Library Component

Instance Attribute Summary collapse

Attributes inherited from Component

#package, #platform, #type

Attributes inherited from RRT_RUBY::RRTGeneric::Element

#documentation, #name, #qualifiedname, #stereotype

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ Library

Returns a new instance of Library.



32
33
34
35
36
37
38
# File 'lib/rrt_ruby/rrt_component.rb', line 32

def initialize element
  begin
    super(element)
  rescue
    raise RRTGeneric::ElementException.new(element),"error while initialising element: #{$!}"
  end
end

Instance Attribute Details

#output_directoryObject (readonly)

Returns the value of attribute output_directory.



30
31
32
# File 'lib/rrt_ruby/rrt_component.rb', line 30

def output_directory
  @output_directory
end

#unit_nameObject (readonly)

Returns the value of attribute unit_name.



30
31
32
# File 'lib/rrt_ruby/rrt_component.rb', line 30

def unit_name
  @unit_name
end

Instance Method Details

#to_sObject



39
40
41
# File 'lib/rrt_ruby/rrt_component.rb', line 39

def to_s
  super()
end