Module: Microstation::TS::TagSetTrait
- Defined in:
- lib/microstation/ts/tagset_trait.rb
Instance Method Summary collapse
- #create_tagset(name, &block) ⇒ Object
- #create_tagset!(name, &block) ⇒ Object
- #find_tagset(name) ⇒ Object
- #remove_tagset(name) ⇒ Object
- #tagset_names ⇒ Object
- #tagsets ⇒ Object
Instance Method Details
#create_tagset(name, &block) ⇒ Object
16 17 18 19 20 |
# File 'lib/microstation/ts/tagset_trait.rb', line 16 def (name,&block) ts = .create(name) block.call ts if block ts end |
#create_tagset!(name, &block) ⇒ Object
22 23 24 25 |
# File 'lib/microstation/ts/tagset_trait.rb', line 22 def (name,&block) (name) (name,&block) end |
#find_tagset(name) ⇒ Object
31 32 33 |
# File 'lib/microstation/ts/tagset_trait.rb', line 31 def (name) [name] end |
#remove_tagset(name) ⇒ Object
27 28 29 |
# File 'lib/microstation/ts/tagset_trait.rb', line 27 def (name) .remove(name) end |
#tagset_names ⇒ Object
12 13 14 |
# File 'lib/microstation/ts/tagset_trait.rb', line 12 def .map{|ts| ts.name} end |
#tagsets ⇒ Object
8 9 10 |
# File 'lib/microstation/ts/tagset_trait.rb', line 8 def = TagSets.new() end |