7件ヒット
[1-7件を表示]
(0.028秒)
クラス
- File (5)
-
RubyVM
:: InstructionSequence (2)
キーワード
- disasm (1)
- disassemble (1)
- executable? (1)
-
executable
_ real? (1) -
world
_ writable? (1) - writable? (1)
-
writable
_ real? (1)
検索結果
先頭5件
-
File
. executable?(path) -> bool (18310.0) -
FileTest.#executable? と同じです。
FileTest.#executable? と同じです。
@param path パスを表す文字列を指定します。 -
File
. executable _ real?(path) -> bool (18310.0) -
FileTest.#executable_real? と同じです。
FileTest.#executable_real? と同じです。
@param path パスを表す文字列を指定します。 -
File
. world _ writable?(path) -> bool (18310.0) -
path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_writable?("/tmp")
"%o" % m #=> "777"
//} -
File
. writable?(path) -> bool (18310.0) -
FileTest.#writable? と同じです。
FileTest.#writable? と同じです。
@param path パスを表す文字列を指定します。 -
File
. writable _ real?(path) -> bool (18310.0) -
FileTest.#writable_real? と同じです。
FileTest.#writable_real? と同じです。
@param path パスを表す文字列を指定します。 -
RubyVM
:: InstructionSequence . disasm(body) -> String (46.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
引数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main... -
RubyVM
:: InstructionSequence . disassemble(body) -> String (46.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
引数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main...