138件ヒット
[1-100件を表示]
(0.027秒)
ライブラリ
- ビルトイン (24)
- pathname (12)
- rake (24)
-
rake
/ testtask (12) -
rubygems
/ commands / which _ command (24) - shell (18)
-
shell
/ command-processor (6) -
shell
/ filter (6) -
webrick
/ httpserver (12)
クラス
-
Encoding
:: Converter (12) -
Gem
:: Commands :: WhichCommand (24) - Pathname (12)
-
Rake
:: TestTask (12) -
RubyVM
:: InstructionSequence (12) - Shell (18)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (12)
-
WEBrick
:: HTTPServer :: MountTable (12)
モジュール
- FileUtils (12)
キーワード
- convpath (12)
-
find
_ paths (12) -
gem
_ paths (12) - libs (12)
- mkdir (18)
-
pathmap
_ explode (12) - scan (12)
- split (12)
-
split
_ all (12) -
system
_ path (6) -
system
_ path= (6) -
to
_ a (12)
検索結果
先頭5件
-
Shell
# system _ path -> Array (6223.0) -
コマンドサーチパスの配列を返す。
...コマンドサーチパスの配列を返す。
@param path コマンドサーチパスの配列を指定します。
使用例
require 'shell'
sh = Shell.new
sh.system_path = [ "./" ]
p sh.system_path #=> ["./"]... -
Shell
# system _ path=(path) (6223.0) -
コマンドサーチパスの配列を返す。
...コマンドサーチパスの配列を返す。
@param path コマンドサーチパスの配列を指定します。
使用例
require 'shell'
sh = Shell.new
sh.system_path = [ "./" ]
p sh.system_path #=> ["./"]... -
Encoding
:: Converter # convpath -> Array (6202.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... -
Gem
:: Commands :: WhichCommand # find _ paths(package _ name , dirs) -> Array (6202.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 (6202.0) -
与えられた Gem::Specification のインスタンスからその Gem が require するファイルのあるディレクトリをまとめて返します。
与えられた Gem::Specification のインスタンスからその Gem が
require するファイルのあるディレクトリをまとめて返します。
@param spec Gem::Specification のインスタンスを指定します。 -
String
# pathmap _ explode -> Array (6202.0) -
自身をパスを表す部分ごとに分解して配列にして返します。 String#pathmap で利用される protected メソッドです。
...自身をパスを表す部分ごとに分解して配列にして返します。
String#pathmap で利用される protected メソッドです。
@see String#pathmap... -
Pathname
# split -> Array (3114.0) -
File.split(self.to_s) と同じです。
...File.split(self.to_s) と同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.split # => [#<Pathname:/path/to>, #<Pathname:sample>]
//}
@see File.split... -
WEBrick
:: HTTPServer :: MountTable # scan(path) -> Array (225.0) -
与えられたパスをスクリプトの名前と PATH_INFO に分割します。
...与えられたパスをスクリプトの名前と PATH_INFO に分割します。
@param path パスを指定します。... -
FileUtils
# split _ all(path) -> Array (209.0) -
与えられたパスをディレクトリごとに分割します。
...与えられたパスをディレクトリごとに分割します。
@param path 分割するパスを指定します。
例:
split_all("a/b/c") # => ['a', 'b', 'c']... -
Shell
# mkdir(*path) -> Array (209.0) -
Dir.mkdirと同じです。 (複数可)
...Dir.mkdirと同じです。 (複数可)
@param path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=>...