312件ヒット
[201-300件を表示]
(0.059秒)
ライブラリ
- ビルトイン (12)
-
json
/ add / exception (12) - mkmf (48)
-
net
/ http (24) - pathname (24)
- rake (12)
-
rexml
/ document (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ source _ info _ cache (12) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (12) - uri (12)
クラス
- Exception (24)
-
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: GemPathSearcher (12) -
Gem
:: RemoteFetcher (36) -
Gem
:: SourceInfoCache (12) -
Net
:: HTTPResponse (24) - Pathname (24)
-
REXML
:: Element (12) - Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - String (12)
-
URI
:: Generic (12) -
WEBrick
:: Cookie (24)
モジュール
- Kernel (48)
キーワード
-
dir
_ config (12) -
fetch
_ path (12) -
find
_ executable (12) -
get
_ file _ uri _ path (12) -
get
_ path (12) - libpathflag (12)
-
link
_ command (12) -
matching
_ files (12) -
open
_ uri _ or _ path (12) - path= (12)
-
pathmap
_ replace (12) -
read
_ body (24) - readlink (18)
- select (12)
-
set
_ backtrace (12) -
spec
_ path (12) - split (18)
- sub (24)
- text (12)
-
to
_ json (12) -
try
_ file (12)
検索結果
先頭5件
-
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (233.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
...を返します。
@param errinfo nil、String あるいは String の配列のいずれかを指定します。
//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/to/test.rb:2:in `<ma... -
REXML
:: Element # text(path = nil) -> String | nil (221.0) -
先頭のテキスト子ノードの文字列を返します。
...XML::Text#value も参照してください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返します。
テキストノードがない場合には nil を返します。
@param path XPath文字列
@see REXML::Element#get_text
//eml... -
Gem
:: SourceInfoCache # try _ file(path) -> String | nil (215.0) -
与えられたパスがキャッシュファイルとして利用可能な場合、そのパスを返します。 そうでない場合は nil を返します。
...与えられたパスがキャッシュファイルとして利用可能な場合、そのパスを返します。
そうでない場合は nil を返します。
@param path キャッシュファイルの候補となるパスを指定します。... -
Shell
# readlink(path) -> String (215.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
:: CommandProcessor # readlink(path) -> String (215.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
:: Filter # readlink(path) -> String (215.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
# split(pathname) -> [String] (208.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Shell
:: CommandProcessor # split(pathname) -> [String] (208.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Shell
:: Filter # split(pathname) -> [String] (208.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Net
:: HTTPResponse # read _ body(dest=nil) -> String|nil (126.0) -
ブロックを与えなかった場合にはエンティティボディを 文字列で返します。 ブロックを与えた場合には エンティティボディを少しずつ取得して順次ブロックに 文字列で与えます。
...p://www.example.com/path/to/big.file')
Net::HTTP.start(uri.host, uri.port) do |http|
File.open("/path/to/big.file", "w") do |f|
# Net::HTTP#request_get と Net::HTTPResponse#read_body で少しずつ読み書き。メモリ消費が少ない。
http.request_get(uri.path) do |response|......い。
dest は obsolete です。使わないでください。
dest を指定した場合には
ボディを少しずつ取得して順次
「dest << ボディの断片」を実行します。
@param dest obsoleteな引数です。利用しないでください。
@see Net::HTTP#request_get... -
Exception
# to _ json(*args) -> String (120.0) -
自身を JSON 形式の文字列に変換して返します。
...@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
begin
0/0
rescue => e
e.to_json # => "{\"json_class\":\"ZeroDivisionError\",\"m\":\"divided by 0\",\"b\":[\"/path/to/test.rb:4:in `/'\",\"/path/... -
URI
:: Generic # select(*components) -> [String] (114.0) -
指定された components に対応する構成要素を文字列の配列として返します。
...素を文字列の配列として返します。
@param components 構成要素名をシンボルで指定します。
例:
require 'uri'
uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :path)
# => ["myuser:mypass", "my.example.com", "/test...