1091件ヒット
[1001-1091件を表示]
(0.052秒)
別のキーワード
クラス
- CSV (108)
- Dir (333)
-
Encoding
:: Converter (48) - File (195)
-
File
:: Stat (12) - IO (132)
-
Net
:: HTTP (24) - Pathname (60)
-
REXML
:: XPath (36) - RubyVM (1)
-
RubyVM
:: InstructionSequence (36) -
URI
:: FTP (12)
モジュール
- Rake (36)
-
RubyVM
:: AbstractSyntaxTree (10) - URI (36)
オブジェクト
- ENV (12)
キーワード
- [] (12)
-
absolute
_ path (12) -
absolute
_ path? (6) - application (12)
- application= (12)
- binread (12)
- binwrite (12)
- chdir (48)
- children (16)
- chroot (12)
- compile (12)
-
compile
_ file (12) - delete (12)
- each (12)
-
each
_ child (32) - empty? (9)
- entries (24)
- exists? (9)
- first (12)
- fnmatch (12)
- fnmatch? (12)
-
for
_ fd (3) - foreach (96)
-
get
_ print (24) - getwd (12)
- glob (24)
- home (24)
- join (24)
- match (12)
- mkdir (12)
- new (123)
- open (126)
-
original
_ dir (12) - parse (12)
-
parse
_ file (10) - pwd (12)
- read (12)
- readlines (48)
- readlink (12)
- realpath (12)
-
resolve
_ feature _ path (1) - rmdir (12)
-
search
_ convpath (12) - split (24)
- sysopen (12)
- table (12)
- truncate (12)
- unlink (12)
-
world
_ readable? (12) -
world
_ writable? (12) - write (24)
検索結果
先頭5件
-
URI
. split(url) -> [String | nil] (19.0) -
URI を要素に分割した文字列の配列を返します。
...try
* path
* opaque
* query
* fragment
@param url パースしたい URI を文字列として与えます。
@raise URI::InvalidURIError パースに失敗した場合に発生します。
例:
require 'uri'
p URI.split("http://www.ruby-lang.org/")
#=> ["http", nil, "www.ruby-lang.... -
ENV
. [](key) -> String (13.0) -
key に対応する環境変数の値を返します。該当する環境変数が存在 しない時には nil を返します。
...列で指定します。文字列以外のオブ
ジェクトを指定した場合は to_str メソッドによる暗黙の型変換
を試みます。
//emlist[][ruby]{
ENV['PATH'] # => "/usr/local/bin:/usr/bin:/bin:/usr/X11/bin"
ENV['NON_EXIST_KEY'] # => nil
//}... -
Encoding
:: Converter . new(source _ encoding , destination _ encoding) -> Encoding :: Converter (13.0) -
Encoding::Converter オブジェクトを作成します。
...グ
@param destination_encoding 変換先のエンコーディング
@param options 変換の詳細を指定する定数やハッシュ
@param convpath 変換経路の配列
options では String#encode でのハッシュオプションに加えて、以下の定数が利用可能です。
* Enc......TTR_QUOTE_DECORATOR
//emlist[][ruby]{
# UTF-16BE to UTF-8
ec = Encoding::Converter.new("UTF-16BE", "UTF-8")
# Usually, decorators such as newline conversion are inserted last.
ec = Encoding::Converter.new("UTF-16BE", "UTF-8", :universal_newline => true)
p ec.convpath #=> [[#<Encoding:UTF-16BE>, #<......lf_newline => true)
p ec.convpath #=> ["crlf_newline",
# [#<Encoding:UTF-8>, #<Encoding:UTF-16BE>]]
# Conversion path can be specified directly.
ec = Encoding::Converter.new(["universal_newline", ["EUC-JP", "UTF-8"], ["UTF-8", "UTF-16BE"]])
p ec.convpath #=> ["universal_newline",... -
Encoding
:: Converter . new(source _ encoding , destination _ encoding , options) -> Encoding :: Converter (13.0) -
Encoding::Converter オブジェクトを作成します。
...グ
@param destination_encoding 変換先のエンコーディング
@param options 変換の詳細を指定する定数やハッシュ
@param convpath 変換経路の配列
options では String#encode でのハッシュオプションに加えて、以下の定数が利用可能です。
* Enc......TTR_QUOTE_DECORATOR
//emlist[][ruby]{
# UTF-16BE to UTF-8
ec = Encoding::Converter.new("UTF-16BE", "UTF-8")
# Usually, decorators such as newline conversion are inserted last.
ec = Encoding::Converter.new("UTF-16BE", "UTF-8", :universal_newline => true)
p ec.convpath #=> [[#<Encoding:UTF-16BE>, #<......lf_newline => true)
p ec.convpath #=> ["crlf_newline",
# [#<Encoding:UTF-8>, #<Encoding:UTF-16BE>]]
# Conversion path can be specified directly.
ec = Encoding::Converter.new(["universal_newline", ["EUC-JP", "UTF-8"], ["UTF-8", "UTF-16BE"]])
p ec.convpath #=> ["universal_newline",... -
File
. join(*item) -> String (13.0) -
File::SEPARATORを間に入れて文字列を連結します。platform/DOSISH-supportで環境依存になる予定です。
...に変換されます。
配列・文字列以外のオブジェクトを指定した場合は、まず to_str メソッド、次に to_path メソッドにより暗黙の型変換を試みます。
引数がない場合には空文字列を生成して返します。
@raise......限にネストした配列や、
ヌル文字を含む文字列が存在した場合に発生します。
//emlist[例][ruby]{
File.join("a","b") # => "a/b"
File.join("a/","b") # => "a/b"
File.join("a/","/b")... -
Rake
. application -> Rake :: Application (13.0) -
現在の Rake アプリケーションを返します。
...現在の Rake アプリケーションを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app
task :test_rake_app do
pp Rake.application
end
# => #<Rake::Application:0x31b0f18
# @default_loader=#<Rake::DefaultLoader:0x31b0c78>,
#......DefaultLoader:0x31b0b10>},
# @name="rake",
# @options=#<OpenStruct rakelib=["rakelib"], trace_output=#<IO:<STDERR>>>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile="rakefile",
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rul... -
Rake
. application=(app) (13.0) -
現在の Rake アプリケーションをセットします。
...在の Rake アプリケーションをセットします。
@param app Rake::Application のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app
task :test_rake_app do
app = Rake::Application.new
app.tty_outp......ent=false, suppress_backtrace_pattern=nil, thread_pool_size=20, trace=false, trace_output=#<IO:<STDERR>>, trace_rules=false>,
# @original_dir="/path/to/dir",
# @pending_imports=[],
# @rakefile=nil,
# @rakefiles=["rakefile", "Rakefile", "rakefile.rb", "Rakefile.rb"],
# @rules=[],... -
Rake
. original _ dir -> String (13.0) -
Rake アプリケーションを開始したディレクトリを返します。
...Rake アプリケーションを開始したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.original_dir # => "/path/to/dir"
end
//}...