Class: Autocad::Attribute
Instance Attribute Summary
Attributes inherited from Element
#acad_type, #app, #ole_obj, #original
Instance Method Summary collapse
- #inspect ⇒ Object
- #key ⇒ Object
- #read_ole(value) ⇒ Object
- #value ⇒ Object
- #write_ole(value) ⇒ Object
Methods inherited from Element
#[], #app_ole_obj, #clone, convert_item, #delete, #do_update, #each_complex, #get_property_handler, #in_cell?, #initialize, #method_missing, #move, #move_ole, #move_x, #move_y, #ole_cell, ole_object?, #property_handler, #redraw, #update, #updated?
Methods included from ElementTrait
#autocad_type, #block_reference?, #bounds, #cell?, #def, #drawing, #explode, #graphical?, #has_tags?, #highlight, #id_from_record, #line?, #model, #parent, #pviewport?, #select, #text?, #to_ole, #visible?
Constructor Details
This class inherits a constructor from Autocad::Element
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Autocad::Element
Instance Method Details
permalink #inspect ⇒ Object
[View source]
142 143 144 |
# File 'lib/autocad/block.rb', line 142 def inspect "<Attribute #{key}: #{value}>" end |
permalink #key ⇒ Object
[View source]
134 135 136 |
# File 'lib/autocad/block.rb', line 134 def key @ole_obj.TagString end |
permalink #read_ole(value) ⇒ Object
[View source]
130 131 132 |
# File 'lib/autocad/block.rb', line 130 def read_ole(value) @ole_obj.TextString end |
permalink #value ⇒ Object
[View source]
138 139 140 |
# File 'lib/autocad/block.rb', line 138 def value @ole_obj.TextString end |
permalink #write_ole(value) ⇒ Object
[View source]
126 127 128 |
# File 'lib/autocad/block.rb', line 126 def write_ole(value) @ole_obj.TextString = value end |