Method: Autocad::MText#method_missing
- Defined in:
- lib/autocad/mtext.rb
#method_missing(meth) ⇒ Object
Delegate uppercase methods to OLE object, lowercase to string methods
167 168 169 170 171 172 173 174 175 176 |
# File 'lib/autocad/mtext.rb', line 167 def method_missing(meth, *, &) if /^[A-Z]/.match?(meth) ole_obj.send(meth, *) else copy = @original.dup result = copy.send(meth, *, &) update(result) unless copy == @original result end end |