Class: Microstation::TaggedElement
- Inherits:
-
Object
- Object
- Microstation::TaggedElement
- Defined in:
- lib/microstation/wrap.rb
Defined Under Namespace
Classes: Set
Instance Method Summary collapse
- #add_tagset(name, elements) ⇒ Object
- #get_tagset(name) ⇒ Object
-
#initialize(ole = nil) ⇒ TaggedElement
constructor
A new instance of TaggedElement.
Constructor Details
#initialize(ole = nil) ⇒ TaggedElement
Returns a new instance of TaggedElement.
89 90 91 92 |
# File 'lib/microstation/wrap.rb', line 89 def initialize(ole=nil) @ole_obj = ole @tag_sets = [] end |
Instance Method Details
#add_tagset(name, elements) ⇒ Object
94 95 96 97 98 99 |
# File 'lib/microstation/wrap.rb', line 94 def (name,elements) ts = TaggedElement::Set.new(name,self) ts.elements = elements @tag_sets << ts ts end |
#get_tagset(name) ⇒ Object
101 102 103 |
# File 'lib/microstation/wrap.rb', line 101 def (name) @tagsets.find{|ts| ts.name == name} end |