るりまサーチ

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

別のキーワード

  1. socket ipv6_v6only
  2. socket ai_v4mapped
  3. socket ai_v4mapped_cfg
  4. _builtin grep_v
  5. etc cs_v7_env

検索結果

<< 1 2 3 ... > >>

CSV#path -> String (21124.0)

IO#path に委譲します。

...IO#path に委譲します。


@see IO#path...

RubyVM::InstructionSequence#path -> String (21120.0)

self が表す命令シーケンスの相対パスを返します。

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

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

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

# irb
> iseq = RubyVM:...
...:InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"

@see RubyVM::InstructionSequence#absolute_path...

Pathname#relative_path_from(base_directory) -> Pathname (15320.0)

base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。

...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。

パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。

self が相対パスなら base_directory...
...トリを表す Pathname オブジェクトを指定します。

@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対パスが求められないときに例外が発生します。

//emlist[例][ruby]{
require 'pathname'

path
= Pathname.new("/tmp...
.../foo")
base = Pathname.new("/tmp")

path
.relative_path_from(base) # => #<Pathname:foo>
//}...

Gem::QuickLoader#push_all_highest_version_gems_on_load_path (12202.0)

prelude.c で定義されている内部用のメソッドです。

prelude.c で定義されている内部用のメソッドです。

Gem::QuickLoader#push_gem_version_on_load_path (12202.0)

prelude.c で定義されている内部用のメソッドです。

prelude.c で定義されている内部用のメソッドです。

絞り込み条件を変える

Encoding::Converter#convpath -> Array (12201.0)

変換器が行う変換の経路を配列にして返します。

...う変換の経路の配列

//emlist[][ruby]{
ec = Encoding::Converter.new("ISo-8859-1", "EUC-JP", crlf_newline: true)
p ec.convpath
#=> [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
# [#<Encoding:UTF-8>, #<Encoding:EUC-JP>],
# "crlf_newline"]
//}

@see Encoding::Converter.search_convpath...

RubyVM::InstructionSequence#absolute_path -> String | nil (9120.0)

self が表す命令シーケンスの絶対パスを返します。

...ubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil

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

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

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

@see RubyVM::InstructionSequence#path...

Pathname#blockdev? -> bool (9101.0)

FileTest.blockdev?(self.to_s) と同じです。

...FileTest.blockdev?(self.to_s) と同じです。


@see FileTest.#blockdev?...

Pathname#chardev? -> bool (9101.0)

FileTest.chardev?(self.to_s) と同じです。

...FileTest.chardev?(self.to_s) と同じです。


@see FileTest.#chardev?...
<< 1 2 3 ... > >>