Skip to content

Commit

Permalink
allow for WIN32OLD#methods to be more user friendly on the irb prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed May 18, 2009
1 parent 63bfbcb commit ef18d9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ruby-wmi/core_ext/win32ole_ext.rb
Expand Up @@ -2,4 +2,10 @@

class WIN32OLE
include Enumerable

# make #methods more friendly
alias :original_methods :methods
def methods
original_methods + properties_.collect{|p| p.name}
end
end

0 comments on commit ef18d9f

Please sign in to comment.