1099件ヒット
[1001-1099件を表示]
(0.099秒)
ライブラリ
- ビルトイン (225)
-
cgi
/ core (24) - csv (12)
-
irb
/ context (12) -
json
/ add / exception (12) - logger (12)
- mkmf (48)
-
net
/ ftp (10) -
net
/ http (48) - openssl (12)
- optparse (12)
- pathname (132)
- pstore (12)
- rake (72)
-
rake
/ packagetask (12) -
rexml
/ document (36) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ config _ file (12) -
rubygems
/ format (12) -
rubygems
/ gem _ path _ searcher (24) -
rubygems
/ old _ format (12) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (48) -
rubygems
/ validator (12) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (24)
- tempfile (12)
- uri (36)
-
webrick
/ httprequest (24) - win32ole (12)
- zlib (12)
クラス
-
ARGF
. class (24) - Addrinfo (12)
-
CGI
:: Cookie (12) - CSV (12)
- Dir (24)
- Exception (24)
- File (24)
-
Gem
:: Commands :: LockCommand (12) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: ConfigFile (12) -
Gem
:: Format (12) -
Gem
:: GemPathSearcher (24) -
Gem
:: OldFormat (12) -
Gem
:: RemoteFetcher (36) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (48) -
Gem
:: Validator (12) - IO (6)
-
IRB
:: Context (12) - LoadError (12)
- Logger (12)
-
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (12) -
Net
:: HTTPGenericRequest (12) -
Net
:: HTTPResponse (24) -
OpenSSL
:: SSL :: SSLContext (12) - OptionParser (12)
- PStore (12)
- Pathname (132)
- Proc (12)
-
RDoc
:: Options (12) -
REXML
:: Attribute (12) -
REXML
:: Element (24) -
Rake
:: Application (12) -
Rake
:: FileList (12) -
Rake
:: PackageTask (12) -
RubyVM
:: InstructionSequence (36) - Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - String (48)
- SyntaxError (3)
- Tempfile (12)
-
Thread
:: Backtrace :: Location (48) - TracePoint (24)
- UNIXSocket (12)
-
URI
:: Generic (24) -
URI
:: HTTP (12) -
WEBrick
:: Cookie (24) -
WEBrick
:: HTTPRequest (24) -
WIN32OLE
_ TYPELIB (12) -
Zlib
:: GzipFile (12)
モジュール
-
CGI
:: QueryExtension (24) - Kernel (48)
キーワード
-
absolute
_ path (24) - binread (12)
- binwrite (12)
-
ca
_ path (24) -
dir
_ config (12) - extname (12)
-
fetch
_ path (12) - filename (12)
-
find
_ executable (12) - formatter (12)
- ftype (12)
-
full
_ gem _ path (12) -
gem
_ path (24) -
get
_ file _ uri _ path (12) -
get
_ path (12) - inspect (36)
-
installation
_ path (12) -
irb
_ path (12) -
lib
_ dirs _ for (12) - libpathflag (12)
-
link
_ command (12) -
matching
_ files (12) -
open
_ uri _ or _ path (12) -
original
_ dir (12) -
package
_ dir _ path (12) - path= (12)
-
path
_ info (24) -
path
_ translated (12) - pathmap (24)
-
pathmap
_ explode (12) -
pathmap
_ partial (12) -
pathmap
_ replace (12) - pathname (10)
-
program
_ name (12) - read (12)
-
read
_ body (24) - readlines (12)
- readlink (18)
-
remove
_ leading _ dot _ dir (12) -
request
_ uri (12) -
require
_ path (12) -
require
_ paths (12) - select (12)
-
set
_ backtrace (12) -
source
_ location (12) -
spec
_ path (12) - split (18)
-
static
_ path (12) - sub (24)
- text (12)
-
to
_ json (12) -
to
_ path (39) -
to
_ s (24) -
try
_ file (12) -
unix
_ path (12) - write (12)
- xpath (24)
検索結果
先頭5件
-
Exception
# to _ json(*args) -> String (114.0) -
自身を 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/to/test.rb:4:in `<main>'\"]}"
end
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json... -
Logger
# formatter -> String (108.0) -
ログを出力する際に使用するフォーマッターを取得します。
...g|
"time:#{timestamp}\tlevel:#{severity}\tprogname:#{progname}\tmessage:#{msg}\n"
}
logger.formatter = ltsv_formatter
logger.formatter # => #<Proc:0x00007fa3048b8e00@/path/to/file:8>
logger.info("MyApp") { "test" }
# => time:2019-05-09 22:13:56 +0900 level:INFO progname:MyApp message:test
//}... -
OptionParser
# program _ name -> String (108.0) -
プログラムの名前を文字列で返します。
...字列で返します。
デフォルトは $0 が使われます。
@return プログラムの名前を文字列で返します。
//emlist[例][ruby]{
require "optparse"
OptionParser.new do |opts|
p $0 # => /path/to/filename.rb
p opts.program_name # => filename
end
//}... -
Rake
:: Application # original _ dir -> String (108.0) -
rake コマンドを実行したディレクトリを返します。
...rake コマンドを実行したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.original_dir # => "/path/to/dir"
end
//}... -
RubyVM
:: InstructionSequence # inspect -> String (108.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
TracePoint
# inspect -> String (108.0) -
self の状態を人間に読みやすい文字列にして返します。
...self の状態を人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.inspect # "#<TracePoint:call `foo'@/path/to/test.rb:1>"
end
trace.enable
foo 1
//}... -
URI
:: Generic # select(*components) -> [String] (108.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.rbx"]... -
ARGF
. class # filename -> String (104.0) -
現在開いている処理対象のファイル名を返します。
現在開いている処理対象のファイル名を返します。
標準入力に対しては - を返します。
組み込み変数 $FILENAME と同じです。
$ echo "foo" > foo
$ echo "bar" > bar
$ echo "glark" > glark
$ ruby argf.rb foo bar glark
ARGF.filename # => "foo"
ARGF.read(5) # => "foo\nb"
ARGF.filename # => "bar"
ARGF.skip
ARGF.filename # => "glark" -
Net
:: HTTPResponse # read _ body {|str| . . . . } -> () (20.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|...