Class: TT::Win32::API
- Inherits:
-
Object
- Object
- TT::Win32::API
- Defined in:
- TT_Lib2/win32.rb
Overview
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(function, input, output, library) ⇒ API
constructor
A new instance of API.
Constructor Details
#initialize(function, input, output, library) ⇒ API
Returns a new instance of API
29 30 31 |
# File 'TT_Lib2/win32.rb', line 29 def initialize(function, input, output, library) @api = ::Win32API.new(library, function, input, output) end |
Instance Method Details
#call(*args) ⇒ Object
32 33 34 35 |
# File 'TT_Lib2/win32.rb', line 32 def call(*args) args.map! { |arg| arg.nil? ? 0 : arg } @api.call(*args) end |