るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.077秒)
トップページ > クエリ:IO.new[x] > クエリ:>>[x] > クエリ:configure[x] > クエリ:on_head[x] > バージョン:3.3[x] > クエリ:ruby 1.8.5 feature[x] > クラス:WIN32OLE_PARAM[x]

別のキーワード

  1. optionparser on
  2. optparse on
  3. tracer on
  4. argf.class lines
  5. argf.class each_line

ライブラリ

検索結果

WIN32OLE_PARAM#optional? -> bool (18340.0)

パラメータがオプションかどうかを取得します。

パラメータがオプションかどうかを取得します。

@return パラメータがオプション(省略可能)であれば真を返します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
param1 = method.params[0]
puts "#{param1.name} #{param1.optional?}" # => Filename true