るりまサーチ

最速Rubyリファレンスマニュアル検索!
184件ヒット [1-100件を表示] (0.019秒)
トップページ > クエリ:type[x] > クエリ:variables[x]

別のキーワード

  1. rexml/document node_type
  2. win32ole ole_type
  3. rss type=
  4. rss type
  5. net/imap media_type

検索結果

<< 1 2 > >>

WIN32OLE_TYPE#variables -> [WIN32OLE_VARIABLE] (21113.0)

型が持つ変数を取得します。

...@raise WIN32OLERuntimeError 型属性が取得できない場合に通知します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
vars = tobj.variables
vars.each do |v|
puts "#{v.name} = #{v.value}"
end

上記を実行すると以下の出力が...

WIN32OLE_VARIABLE#ole_type -> String (6137.0)

変数の型を取得します。

...「Unknown Type nn」(nnはバリアント型を示す数値)の形式の文字列
を返します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
variables
= tobj.variables
variables
.each do |variable|
puts "#{variable.ole_type} #{variable...

WIN32OLE_VARIABLE#ole_type_detail -> [String] (6137.0)

変数の型と属性を取得します。

...32OLE_TYPE.new('Microsoft XML, v5.0', 'tagSTATSTG')
tobj.variables.each do |v|
puts "#{v.ole_type} [#{v.ole_type_detail.join(', ')}] #{v.name}"
end

出力結果

Unknown Type 31 [] pwcsName # => VT_LPWSTR はWIN32OLE::VARIANTで未定義なので変換できない
UI4 [UI4] type
_UL...

NEWS for Ruby 3.0.0 (54.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...is
introduced.
* {RBS}[rdoc-label:label-RBS] is introduced. It is a type definition
language for Ruby programs.
* {TypeProf}[rdoc-label:label-TypeProf] is experimentally bundled. It is a
type
analysis tool for Ruby programs.
* Deprecation warnings are no longer show...
...2.7.2).
Turn them on with `-W:deprecated` (or with `-w` to show other warnings too).
16345
* `$SAFE` and `$KCODE` are now normal global variables with no special behavior.
C-API methods related to `$SAFE` have been removed.
16131 17136
* yield in singleton class definitions in me...
...aximum of 1, and passing a keyword splat to a method that accepts specific keywords does not allocate a hash.
* `super` is optimized when the same type of method is called in the previous call if it's not refinements or an attr reader or writer.

=== JIT

* Performance improvements of JIT-ed cod...

ruby 1.8.3 feature (54.0)

ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))

...$ ruby-1.8.2 -e 'p File.join(1, 2)'
"1/2"

$ ruby-1.8.3 -e 'p File.join(1, 2)'
-e:1:in `join': can't convert Fixnum into String (TypeError)
from -e:1

=== 2005-09-16
: File.extname [ruby] [compat]

与えられた pathname がピリオドで終る場合、ピリオ...
...w]
: Net::HTTPHeader#content_type [lib] [new]
: Net::HTTPHeader#main_type [lib] [new]
: Net::HTTPHeader#sub_type [lib] [new]
: Net::HTTPHeader#type_params [lib] [new]
: Net::HTTPHeader#content_type= [lib] [new]
: Net::HTTPHeader#set_content_type [lib] [new]

: Net::HTTPReq...
...rror を投げます。

$ ruby-1.8.2 -se 'puts global_variables.grep(/foo/)' -- --foo-bar
$-foo-bar
$ ruby-1.8.3 -se 'puts global_variables.grep(/foo/)' -- --foo-bar
$_foo_bar

$ ruby-1.8.3 -se 'puts global_variables.grep(/foo/)' -- --foo\@bar
-e: invalid name for glob...

絞り込み条件を変える

WIN32OLE_VARIABLE (48.0)

OLEオートメーションの変数情報をRubyで参照するためのクラスです。

...ブジェクトは、WIN32OLE_TYPE#variablesメソッ
ドを利用して取得します。

=== サンプルコード

require 'win32ole'

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
variables
= tobj.variables
variables
.each do |variable|
puts "#{v...
...ariable.name}=#{variable.value}"
end

実行結果は以下となります。

xlChart=-4109
xlDialogSheet=-4116
xlExcel4IntlMacroSheet=4
xlExcel4MacroSheet=3
xlWorksheet=-4167

@see WIN32OLE_TYPE#variables...

Ruby用語集 (42.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...。そうでない場所では、メソッドを使って
間接的に参照・代入できる。

→アクセッサー

参照:d:spec/variables#instance

: インスタンスメソッド
: instance method
クラスやモジュールに定義されるメソッドは、定義方法によ...
...があるが、Java における private、protected とは全く異なるので注意が
必要である。

参照:d:spec/def#limit

: 型
: type
→データ型

: ガーベジコレクション
: garbage collection
オブジェクトがどこからも参照されなくなったとき...
...タンスメソッドの定義中
でも参照・代入できる。

クラスインスタンス変数とは異なる。

参照:d:spec/variables#class

: クラス名
: class name
クラスの名前。クラスを定義すると、同名の定数が定義され、そのクラスが
...

クラス/メソッドの定義 (36.0)

クラス/メソッドの定義 * クラス/メソッドの定義: * class * singleton_class * module * method * operator * nest_method * eval_method * singleton_method * class_method * limit * 定義に関する操作: * alias * undef * defined

...[`<' superclass ]
式..
end

文法:

class 識別子 [`<' superclass ]
式..
[rescue [error_type,..] [=> evar] [then]
式..]..
[else
式..]
[ensure
式..]
end

クラスを定義...
...ス定義を書くとク
ラスの定義の追加になります。
ただし、元のクラスと異なるスーパークラスを指定すると TypeError が発生します。

//emlist[][ruby]{
class Foo < Array
def foo
end
end

# 定義を追加(スーパークラス Array を明示的に...
...には別名を付けることができません。
また、インタプリタに対して重要な意味のあるグローバル変数
(d:spec/variables#builtin_variable を参照)を再定義すると動作に
支障を来す場合があります。

alias 式は nil を返します。

====[a:u...

WIN32OLE_VARIABLE#name -> String (24.0)

変数名を取得します。

...変数名を取得します。

@return 変数名を文字列で返します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
variables
= tobj.variables
variables
.each do |variable|
puts "#{variable.name}" # => xlChart, xlDialogSheet, ...
end...
<< 1 2 > >>