るりまサーチ

最速Rubyリファレンスマニュアル検索!
110件ヒット [1-100件を表示] (0.016秒)

別のキーワード

  1. streamui ins
  2. rubygems/user_interaction ins
  3. ins
  4. ins_methods_i
  5. ins gem::streamui

検索結果

<< 1 2 > >>

RubyVM::InstructionSequence.of(body) -> RubyVM::InstructionSequence (21237.0)

引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。

...元に
RubyVM::InstructionSequence オブジェクトを作成して返します。

@param body Proc、Method オブジェクトを指定します。

例1:irb で実行した場合

# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:bl...
...:InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/iseq_of.rb
def hello
puts "hello, world"
end

$a_global_proc = proc { str = 'a' + 'b' }

# irb
> require '/tmp/iseq_of....
...rb'

# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>

# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSequence:0x007fb73d7caf78>...

Object#instance_of?(klass) -> bool (12231.0)

オブジェクトがクラス klass の直接のインスタンスである時真を返します。

...

obj.instance_of?(c) が成立する時には、常に obj.kind_of?(c) も成立します。

@param klass Classかそのサブクラスのインスタンスです。

//emlist[][ruby]{
class C < Object
end
class S < C
end

obj = S.new
p obj.instance_of?(S) # true
p obj.instance_of?(C)...
...# false
//}

@see Object#kind_of?,Object#class...

MiniTest::Assertions#assert_instance_of(klass, object, message = nil) -> true (12207.0)

与えられたオブジェクトが与えられたクラスの直接のインスタンスである場合、検査にパスしたことになります。

...Proc#call した
結果を使用します。

@raise MiniTest::Assertion 与えられたオブジェクトが与えられたクラスの直接のインスタンスでない
場合に発生します。

@see Module#===, MiniTest::Assertions#assert_kind_of...

Object#must_be_instance_of(klass) -> true (12207.0)

自身が与えられたクラスのインスタンスである場合、検査にパスしたことになります。

...ンスである場合、検査にパスしたことになります。

@param klass 任意のクラスを指定します。

@raise MiniTest::Assertion 自身が与えられたクラスの直接のインスタンスでない場合に発生します。

@see MiniTest::Assertions#assert_instance_of...

VALUE rb_obj_is_instance_of(VALUE obj, VALUE klass) (12200.0)

obj がクラス klass のインスタンスならば真。

obj がクラス klass のインスタンスならば真。

絞り込み条件を変える

OpenSSL::SSL::OP_MICROSOFT_BIG_SSLV3_BUFFER -> Integer (6100.0)

SSL 通信での各種バグ回避コードを有効にするフラグです。

...るフラグです。

OpenSSL::SSL::SSLContext#options= で利用します。

通常は OpenSSL::SSL::OP_ALL でこれらすべてを有効にします。
特定のフラグのみ無効にしたい場合は例えば

ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS

などとします。...

OpenSSL::SSL::OP_MICROSOFT_SESS_ID_BUG -> Integer (6100.0)

SSL 通信での各種バグ回避コードを有効にするフラグです。

...るフラグです。

OpenSSL::SSL::SSLContext#options= で利用します。

通常は OpenSSL::SSL::OP_ALL でこれらすべてを有効にします。
特定のフラグのみ無効にしたい場合は例えば

ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS

などとします。...

rubygems/commands/uninstall_command (6012.0)

Gem パッケージをアンインストールするためのライブラリです。

...gem uninstall GEMNAME [GEMNAME ...] [options]
Options:
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --[no-]executables Uninstall ap...
...n
-i, --install-dir DIR Directory to uninstall gem from
-n, --bindir DIR Directory to remove binaries from
-v, --version VERSION Specify version of gem to uninstall
--platform PLATFORM Specify the platform of gem to uninstall
Com...
...グオプションを有効にします
Arguments:
GEMNAME アンインストールする Gem パッケージ名を指定します。
Summary:
Gem パッケージをアンインストールします
Defaults:
--version '>= 0' --no-force --install-dir /usr/lib/ruby/gems/1.8...

RubyVM::InstructionSequence#base_label -> String (3006.0)

self が表す命令シーケンスの基本ラベルを返します。

...を返します。

例1:irb で実行した場合

iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/method.rb...
...# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"

例3:

# /tmp/method2.rb
def hello
puts "hello, world"
end

RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"

@see RubyVM::InstructionSequence#label...

RubyVM::InstructionSequence#first_lineno -> Integer (3006.0)

self が表す命令シーケンスの 1 行目の行番号を返します。

...の 1 行目の行番号を返します。

例1:irb で実行した場合

RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1

例2:

# /tmp/method.rb
require "foo-library"
def foo
p :foo
end

RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2...

絞り込み条件を変える

RubyVM::InstructionSequence#label -> String (3006.0)

self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。

...:InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/method.rb
def hello
puts "hello, world"
end

# irb
> iseq = RubyVM::Inst...
...ructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"

例3:

# /tmp/method2.rb
def hello
puts "hello, world"
end

RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"

@see RubyVM::InstructionSequence#base_label...
<< 1 2 > >>