るりまサーチ

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

別のキーワード

  1. array fill
  2. array []
  3. array sample
  4. array fetch
  5. array new

モジュール

検索結果

<< 1 2 3 ... > >>

Gem.#path -> Array (18202.0)

Gem を検索するパスの配列を返します。

Gem を検索するパスの配列を返します。

Shell.default_system_path -> Array (6228.0)

Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。

...る対象のパスを設定および、参照します。

@param path Shellでもちいられるコマンドを検索する対象のパスを文字列で指定します。

動作例
require 'shell'
p Shell.default_system_path
# 例
#=> [ "/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/...
...bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
# => "/Users/kouya/bin"...

Shell.default_system_path=(path) (6228.0)

Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。

...る対象のパスを設定および、参照します。

@param path Shellでもちいられるコマンドを検索する対象のパスを文字列で指定します。

動作例
require 'shell'
p Shell.default_system_path
# 例
#=> [ "/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/...
...bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
# => "/Users/kouya/bin"...

Shell#system_path -> Array (6222.0)

コマンドサーチパスの配列を返す。

...コマンドサーチパスの配列を返す。

@param path コマンドサーチパスの配列を指定します。

使用例

require 'shell'
sh = Shell.new
sh.system_path = [ "./" ]
p sh.system_path #=> ["./"]...

Shell#system_path=(path) (6222.0)

コマンドサーチパスの配列を返す。

...コマンドサーチパスの配列を返す。

@param path コマンドサーチパスの配列を指定します。

使用例

require 'shell'
sh = Shell.new
sh.system_path = [ "./" ]
p sh.system_path #=> ["./"]...

絞り込み条件を変える

Encoding::Converter#convpath -> Array (6201.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...

Encoding::Converter.search_convpath(source_encoding, destination_encoding, options) -> Array (6201.0)

引数で指定した文字エンコーディングの変換の経路を配列にして返します。

...:Converter.search_convpath("ISO-8859-1", "EUC-JP")
# => [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
# [#<Encoding:UTF-8>, #<Encoding:EUC-JP>]]

p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-JP", universal_newline: true)
# or
p Encoding::Converter.search_convpath("ISO-8859-1", "EUC-J...
...#<Encoding:UTF-8>, #<Encoding:EUC-JP>],
# "universal_newline"]

p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", universal_newline: true)
# or
p Encoding::Converter.search_convpath("ISO-8859-1", "UTF-32BE", newline: :universal)
# => [[#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>],
#...
..."universal_newline",
# [#<Encoding:UTF-8>, #<Encoding:UTF-32BE>]]
//}

@see Encoding::Converter#convpath, Encoding::Converter.new...

Gem::Commands::WhichCommand#find_paths(package_name, dirs) -> Array (6201.0)

dirs から package_name という名前を持つファイルを探索します。

dirs から package_name という名前を持つファイルを探索します。

以下の拡張子を持つファイルが対象です。

%w[.rb .rbw .so .dll .bundle]

@param package_name ファイルの名前を指定します。

@param dirs 探索するディレクトリを文字列の配列で指定します。

Gem::Commands::WhichCommand#gem_paths(spec) -> Array (6201.0)

与えられた Gem::Specification のインスタンスからその Gem が require するファイルのあるディレクトリをまとめて返します。

与えられた Gem::Specification のインスタンスからその Gem が
require するファイルのあるディレクトリをまとめて返します。

@param spec Gem::Specification のインスタンスを指定します。

String#pathmap_explode -> Array (6201.0)

自身をパスを表す部分ごとに分解して配列にして返します。 String#pathmap で利用される protected メソッドです。

...自身をパスを表す部分ごとに分解して配列にして返します。
String#pathmap で利用される protected メソッドです。

@see String#pathmap...

絞り込み条件を変える

FileUtils.#mkpath(list, options = {}) -> Array (3203.0)

ディレクトリ dir とその親ディレクトリを全て作成します。

ディレクトリ dir とその親ディレクトリを全て作成します。

例えば、
//emlist[][ruby]{
require 'fileutils'
FileUtils.mkdir_p('/usr/local/lib/ruby')
//}

は以下の全ディレクトリを (なければ) 作成します。

* /usr
* /usr/local
* /usr/local/bin
* /usr/local/bin/ruby

@param list 作成するディレクトリ。一つの場合は文字列でも指定できます。
二つ以上指定する場合は配列で指定します。

@param...
<< 1 2 3 ... > >>