Module: Autocad::Common

Included in:
App, Drawing
Defined in:
lib/autocad.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) ⇒ Object

Handle uppercase method calls by forwarding to OLE object



7
8
9
10
11
12
13
# File 'lib/autocad.rb', line 7

def method_missing(method, ...)
  if /^[A-Z]/.match?(method.to_s)
    ole_obj.send(method, ...)
  else
    super
  end
end