ライブラリ
- ビルトイン (96)
- benchmark (77)
- date (55)
- e2mmap (24)
- ipaddr (11)
-
irb
/ context (22) - logger (85)
- matrix (33)
- mkmf (11)
-
net
/ http (22) -
net
/ imap (33) - openssl (22)
- prettyprint (22)
-
rdoc
/ markup / formatter (11) -
rexml
/ document (77) - rss (33)
-
rubygems
/ defaults (11) -
rubygems
/ dependency _ installer (22) -
rubygems
/ exceptions (11) -
rubygems
/ format (66) -
rubygems
/ installer (55) -
rubygems
/ old _ format (66) -
rubygems
/ package / tar _ header (22) -
rubygems
/ package / tar _ input (11) -
rubygems
/ package / tar _ output (44) -
rubygems
/ specification (11) - scanf (180)
- socket (77)
- stringio (11)
- syslog (11)
-
syslog
/ logger (11) - time (44)
-
webrick
/ accesslog (88) -
webrick
/ httpserver (11) -
webrick
/ httpstatus (22) -
webrick
/ log (22) -
win32
/ registry (11) - zlib (22)
クラス
-
ARGF
. class (11) -
Benchmark
:: Report (22) -
Benchmark
:: Tms (33) - Date (33)
- DateTime (22)
-
Gem
:: DependencyInstaller (22) -
Gem
:: Format (66) -
Gem
:: Installer (55) -
Gem
:: OldFormat (66) -
Gem
:: Package :: TarHeader (22) -
Gem
:: Package :: TarOutput (44) -
Gem
:: Specification (11) - IO (23)
- IPAddr (11)
-
IRB
:: Context (22) - Logger (41)
-
Logger
:: Formatter (44) -
Net
:: IMAP (22) -
OpenSSL
:: PKCS7 (11) - PrettyPrint (22)
-
RDoc
:: Markup :: Formatter (11) -
RDoc
:: Options (33) -
REXML
:: Formatters :: Default (22) -
REXML
:: Formatters :: Pretty (33) -
REXML
:: Formatters :: Transitive (11) -
RubyVM
:: InstructionSequence (11) -
Scanf
:: FormatSpecifier (66) -
Scanf
:: FormatString (78) - Socket (22)
- String (20)
- StringIO (11)
-
Syslog
:: Logger :: Formatter (11) - TCPServer (22)
- Time (55)
- UDPSocket (33)
-
WEBrick
:: HTTPServer (11) -
WEBrick
:: Log (22) -
Win32
:: Registry :: Error (11) -
Zlib
:: GzipReader (11) -
Zlib
:: GzipWriter (11)
モジュール
- Benchmark (22)
- DublinCoreModel (33)
- Exception2MessageMapper (24)
- Gem (11)
- Kernel (55)
-
OpenSSL
:: Buffering (11) - Syslog (11)
-
WEBrick
:: AccessLog (77) -
WEBrick
:: HTTPStatus (11)
キーワード
-
AGENT
_ LOG _ FORMAT (11) - AccessLog (11)
- BINARY (11)
- CLF (11)
-
CLF
_ TIME _ FORMAT (11) -
COMBINED
_ LOG _ FORMAT (11) -
COMMON
_ LOG _ FORMAT (11) -
DEFAULT
_ OPTIONS (11) - DataFormatError (11)
- ErrDimensionMismatch (11)
- ErrNotRegular (11)
- ErrOperationNotDefined (11)
- FORMAT (22)
- Format (11)
- FormatException (11)
- FormatMessageA (11)
- FormatSpecifier (6)
- FormatString (6)
- HTTPInformation (11)
- HTTPNonAuthoritativeInformation (11)
- IN6FORMAT (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 3
. 0 . 0 (4) - NonAuthoritativeInformation (11)
- Options (11)
-
PACK
_ FORMAT (11) -
RC
_ NON _ AUTHORITATIVE _ INFORMATION (11) -
REFERER
_ LOG _ FORMAT (11) - REGEX (6)
- Ruby用語集 (11)
- SPECIFIERS (6)
- TarInput (11)
- Transitive (11)
-
UNPACK
_ FORMAT (11) -
_ strptime (22) -
add
_ gem _ contents (11) -
add
_ signatures (11) - benchmark (11)
- call (22)
- conversion (6)
-
count
_ space? (6) -
datetime
_ format (22) -
datetime
_ format= (22) -
dc
_ format (11) -
dc
_ format= (11) -
dc
_ formats (11) -
def
_ exception (12) -
default
_ exec _ format (11) -
exec
_ format (11) -
exec
_ format= (11) -
extract
_ files (11) -
file
_ entries (22) -
file
_ entries= (22) -
format
_ date (11) -
format
_ datetime (11) -
formatted
_ program _ filename (11) - formatter (22)
- formatter= (11)
-
from
_ file _ by _ path (22) -
from
_ io (22) -
gem
_ path (22) - getaddrinfo (11)
- getnameinfo (11)
-
image
_ format (11) - item (11)
-
last
_ match _ tried (6) -
last
_ spec (6) -
last
_ spec _ tried (6) - letter (6)
- log (11)
- logger (11)
- match (12)
- matched (6)
-
matched
_ count (6) -
matched
_ string (6) -
mid
_ match? (6) -
net
/ imap (11) - new (124)
- open (22)
- printf (77)
- prune (6)
- rdoc (11)
-
re
_ string (6) - report (11)
- requirements= (11)
-
return
_ format (11) -
return
_ format= (11) - rfc2822 (11)
- rfc822 (11)
-
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
rubygems
/ commands / install _ command (11) -
rubygems
/ package / tar _ input (11) - scanf (24)
- send (33)
-
singleline
_ format (11) - space (6)
- spec (22)
-
spec
_ count (6) - sprintf (11)
- sprintf フォーマット (11)
- strftime (22)
-
string
_ left (6) - strptime (44)
-
time
_ format (11) -
time
_ format= (11) -
to
_ a (11) -
to
_ re (6) -
to
_ s (23) - unpack1 (8)
- uri (11)
- width (17)
- width= (11)
- write (11)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (11)
- 正規表現 (11)
検索結果
先頭5件
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル
- PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object - WEBrick
:: AccessLog . # format(format _ string , params) -> String - PrettyPrint
. format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object - Kernel
. # format(format , *arg) -> String
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (23012.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
...ntation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレンスは一部未完成です。
それ以外のドキュメントについては、まだまだ書き直しが必要です。
=== 目次
* spec/intro......minate
* spec/thread
* spec/safelevel
Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* spec/literal
* spec/operator
* spec/control
* spec/call
* spec/def
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin......==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format
* glossary
* symref
* marshal_format
* license
* help......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って....../intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
* spec/safelevel
Ruby の文法:
* spec/lexical
* spec/program
* spec/varia......f
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format
* glossary
* symref
* marshal_format
* license
* help......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.5 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.6 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.7 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.0 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.1 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.2 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って......c/intro
* spec/commands
* spec/rubycmd
* spec/envvars
==== Ruby 言語仕様
Ruby でのオブジェクト:
* spec/object
* spec/class
プロセスの実行:
* spec/eval
* spec/terminate
* spec/thread
Ruby の文法:
* spec/lexical
* spec/program
* spec/variables
* spec/lite......ニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃って... -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (21417.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text......の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます。... -
WEBrick
:: AccessLog . # format(format _ string , params) -> String (21408.0) -
与えられたフォーマット文字列とパラメータを使用してログを整形します。
...与えられたフォーマット文字列とパラメータを使用してログを整形します。
@param format_string フォーマット文字列を指定します。
@param params パラメータを指定します。... -
PrettyPrint
. format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (21201.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 与えられた output を返します。
...rettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
与えられた output を返します。
以下と同じ働きをするもので簡便のために用意されています。
//emlist[][ruby]{
require 'prettyprint'
begin
pp = PrettyPrint.new......(output, maxwidth, newline, &genspace)
...
pp.flush
output
end
//}
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 行の最大幅を指定します。ただし、改行できないものが渡された場合......は、
実際の出力幅は maxwidth を越えることがあります。
@param newline 改行に使われます。
@param genspace 空白の生成に使われる Proc オブジェクトを指定します。
生成したい空白の幅を表す整数を引数と... -
Kernel
. # format(format , *arg) -> String (18361.0) -
format 文字列を C 言語の sprintf と同じように解釈し、 引数をフォーマットした文字列を返します。
...
format 文字列を C 言語の sprintf と同じように解釈し、
引数をフォーマットした文字列を返します。
@param format フォーマット文字列です。
@param arg フォーマットされる引数です。
@see Kernel.#printf,Time#strftime,Date.strptime
=== sprintf......フォーマット
Ruby の sprintf フォーマットは基本的に C 言語の sprintf(3)
のものと同じです。ただし、short や long などの C 特有の型に対する修飾子が
ないこと、2進数の指示子(%b, %B)が存在すること、sprintf のすべての方言をサ......うな表示をします。絶対値に符号を付けた形式
で出力するためには %+x、% x のように指定します。
以下は sprintf フォーマットの書式です。[] で囲まれた部分は省略可
能であることを示しています。
%[nth$][フラグ][幅][.精... -
Benchmark
:: Tms # format(fmtstr = nil , *args) -> String (18213.0) -
self を指定されたフォーマットで整形して返します。
...rnel.#format のようにオブジェクトを整形しますが、
以下の拡張を使用することができます。
: %u
user CPU time で置き換えられます。Benchmark::Tms#utime
: %y
system CPU time で置き換えられます(Mnemonic: y of "s*y*stem")。Benchmark::Tms#stime
: %......U
子プロセスの user CPU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセスの system CPU time で置き換えられます。Benchmark::Tms#cstime
: %t
total CPU time で置き換えられます。Benchmark::Tms#total
: %r
実経過時間で置き換えられ......Benchmark::Tms#real
: %n
ラベルで置き換えられます(Mnemonic: n of "*n*ame")。Benchmark::Tms#label
@param fmtstr フォーマット文字列です。
省略された場合は、Benchmark::Tms::FORMAT が使用されます。
@param args フォーマットされる引数... -
Logger
:: Formatter # datetime _ format=(format) (15326.0) -
ログの日時フォーマットをセットします。
...aram format 日時のフォーマット文字列。Time#strftime で使用するフォーマット文字列と
同じものを使用できます。
//emlist[例][ruby]{
require 'logger'
formatter = Logger::Formatter.new
formatter.datetime_format # => nil
formatter.datetime_format = '......%Y-%m-%d %H:%M:%S' # => "%Y-%m-%d %H:%M:%S"
formatter.datetime_format # => "%Y-%m-%d %H:%M:%S"
//}
@see Time#strftime... -
Net
:: IMAP . format _ datetime(time) -> String (15307.0) -
時刻オブジェクトを IMAP の日付時刻フォーマットでの文字列に変換します
...時刻オブジェクトを IMAP の日付時刻フォーマットでの文字列に変換します
require 'net/imap'
Net::IMAP.format_datetime(Time.new(2011, 6, 20, 13, 20, 1))
# => "20-Jun-2011 13:20 +0900"
@param time 変換する時刻オブジェクト... -
Logger
:: Formatter # datetime _ format -> String (15201.0) -
ログの日時フォーマットを取得します。
...ログの日時フォーマットを取得します。
@see Time#strftime... -
Logger
# datetime _ format=(format) (12326.0) -
ログに記録する時の日付のフォーマットをセットします。
...マットをセットします。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.datetime_format # => nil
logger.debug("test")
logger.datetime_format = '%Y/%m/%dT%H:%M:%S.%06d' # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.datetime_format # => "%Y/%m/%dT%H:%M:%S.%06d"
logger.debu......g("test")
# => D, [2019-03-13T23:52:13.674385 #17393] DEBUG -- : test
# D, [2019/03/13T23:52:13.000012#17393] DEBUG -- : test
//}
@see Time#strftime, Logger#datetime_format...