Class: RRT_RUBY::RRTLogical::Class

Inherits:
RRT_RUBY::RRTGeneric::Element show all
Defined in:
lib/rrt_ruby/rrt_logical.rb

Instance Attribute Summary collapse

Attributes inherited from RRT_RUBY::RRTGeneric::Element

#documentation, #name, #qualifiedname, #stereotype

Instance Method Summary collapse

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

#attributesObject (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_sObject



165
166
167
# File 'lib/rrt_ruby/rrt_logical.rb', line 165

def to_s
  super()+", #{@attributes.size} attributes"
end