Class: Microstation::TaggedElement

Inherits:
Object
  • Object
show all
Defined in:
lib/microstation/wrap.rb

Defined Under Namespace

Classes: Set

Instance Method Summary collapse

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 add_tagset(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 get_tagset(name)
  @tagsets.find{|ts| ts.name == name}
end