Sha256: f88d67c84b172d8a88c93543c2225e415a2346f124eb470435e277aad0faadb1

Contents?: true

Size: 775 Bytes

Versions: 6

Compression:

Stored size: 775 Bytes

Contents

class WIN32OLE_PARAM
  attr_accessor :name
  
  def initialize(method, index, param_info=nil)
    raise TypeError.new("1st parameter must be WIN32OLE object") if !method.kind_of? WIN32OLE_METHOD

    @method, @index, @param = method, index, param_info
  end

  def default
    @param.is_default_value ? RubyWIN32OLE.from_variant(JRuby.runtime, @param.get_default_value) : nil
  end

  def input?
    @param.is_in
  end

  def name
    @param.name
  end
  alias :to_s :name
  alias :inspect :name

  def ole_type
    typedesc_value(@param.vt)
  end

  def ole_type_detail
    typedesc_value(@param.vt, [])
  end

  def output?
    @param.is_out
  end

  def optional?
    @param.is_optional
  end

  def retval?
    @param.is_return_value
  end

  include WIN32OLE::Utils
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jruby-win32ole-0.8.5 lib/win32ole/win32ole_param.rb
jruby-win32ole-0.8.4 lib/win32ole/win32ole_param.rb
jruby-win32ole-0.8.3 lib/win32ole/win32ole_param.rb
jruby-win32ole-0.8.2 lib/win32ole/win32ole_param.rb
jruby-win32ole-0.8.1 lib/win32ole/win32ole_param.rb
jruby-win32ole-0.8.0 lib/win32ole/win32ole_param.rb