Class: WIN32OLE

Inherits:
Object
  • Object
show all
Defined in:
lib/underscore_win32ole.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/underscore_win32ole.rb', line 6

def method_missing(name, *args, &block)
  begin
    old_method_missing(name.to_s.camelize(:upper), *args, &block)
  rescue NameError
    old_method_missing(name, *args, &block)
  end
end

Instance Method Details

#old_method_missingObject



5
# File 'lib/underscore_win32ole.rb', line 5

alias_method :old_method_missing, :method_missing