Class: RRT_RUBY::RRTLogical::Class
- Inherits:
-
RRT_RUBY::RRTGeneric::Element
- Object
- RRT_RUBY::RRTGeneric::Element
- RRT_RUBY::RRTLogical::Class
- Defined in:
- lib/rrt_ruby/rrt_logical.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Attributes inherited from RRT_RUBY::RRTGeneric::Element
#documentation, #name, #qualifiedname, #stereotype
Instance Method Summary collapse
-
#initialize(element) ⇒ Class
constructor
A new instance of Class.
- #to_s ⇒ Object
Constructor Details
#initialize(element) ⇒ Class
Returns a new instance of Class.
156 157 158 159 160 161 162 163 |
# File 'lib/rrt_ruby/rrt_logical.rb', line 156 def initialize element begin super(element) @attributes=extract_attributes(element) rescue raise RRTGeneric::ElementException.new(element),"error while initialising element: #{$!}" end end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
155 156 157 |
# File 'lib/rrt_ruby/rrt_logical.rb', line 155 def attributes @attributes end |
Instance Method Details
#to_s ⇒ Object
165 166 167 |
# File 'lib/rrt_ruby/rrt_logical.rb', line 165 def to_s super()+", #{@attributes.size} attributes" end |