Module: Microstation::TagSetTrait
- Included in:
- Drawing
- Defined in:
- lib/microstation/tag_set_trait.rb
Instance Method Summary collapse
- #create_tagset(name, &block) ⇒ Object
- #create_tagset!(name, &block) ⇒ Object
- #find_tagset(name) ⇒ Object
- #remove_tagset(name) ⇒ Object
- #reset_tagsets ⇒ Object
- #tagset_names ⇒ Object
- #tagsets ⇒ Object
Instance Method Details
#create_tagset(name, &block) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/microstation/tag_set_trait.rb', line 18 def (name,&block) ts = .create(name) block.call ts if block ts end |
#create_tagset!(name, &block) ⇒ Object
25 26 27 28 |
# File 'lib/microstation/tag_set_trait.rb', line 25 def (name,&block) (name) (name,&block) end |
#find_tagset(name) ⇒ Object
35 36 37 |
# File 'lib/microstation/tag_set_trait.rb', line 35 def (name) [name] end |
#remove_tagset(name) ⇒ Object
30 31 32 33 |
# File 'lib/microstation/tag_set_trait.rb', line 30 def (name) .remove(name) end |
#reset_tagsets ⇒ Object
13 14 15 16 |
# File 'lib/microstation/tag_set_trait.rb', line 13 def @tagsets = nil end |
#tagset_names ⇒ Object
9 10 11 |
# File 'lib/microstation/tag_set_trait.rb', line 9 def .map{|ts| ts.name} end |