ライブラリ
- ビルトイン (8)
-
cgi
/ html (4) - date (1)
- e2mmap (2)
- getoptlong (1)
-
irb
/ context (2) - json (11)
- logger (2)
- matrix (4)
- monitor (6)
-
net
/ ftp (1) -
net
/ http (4) - open-uri (2)
- optparse (1)
- pathname (3)
- psych (1)
-
rdoc
/ context (8) -
rdoc
/ markup (1) -
rdoc
/ markup / formatter (2) -
rdoc
/ text (1) -
rdoc
/ top _ level (3) - resolv (1)
-
rexml
/ document (5) - rss (8)
-
rubygems
/ installer (1) -
rubygems
/ old _ format (4) -
rubygems
/ source _ index (1) -
rubygems
/ spec _ fetcher (2) -
rubygems
/ version _ option (1) - scanf (10)
- shell (2)
-
shell
/ command-processor (3) -
shell
/ filter (2) -
shell
/ process-controller (1) -
shell
/ system-command (1) - un (1)
-
webrick
/ httputils (7) -
webrick
/ log (1) - zlib (1)
クラス
- Array (2)
- Date (1)
-
Gem
:: Installer (1) -
Gem
:: OldFormat (4) -
Gem
:: SourceIndex (1) -
Gem
:: SpecFetcher (2) - GetoptLong (1)
- IO (1)
-
IRB
:: Context (2) - Logger (1)
-
Logger
:: Formatter (1) - Matrix (2)
-
Matrix
:: LUPDecomposition (1) -
MonitorMixin
:: ConditionVariable (5) -
Net
:: FTP (1) -
Net
:: HTTPGenericRequest (2) - OptionParser (1)
- Pathname (3)
-
Psych
:: Nodes :: Node (1) -
RDoc
:: Context (8) -
RDoc
:: Markup (1) -
RDoc
:: Markup :: Formatter (2) -
RDoc
:: Options (3) -
RDoc
:: TopLevel (3) -
REXML
:: Attribute (1) -
REXML
:: Entity (2) -
REXML
:: Formatters :: Default (1) -
REXML
:: Formatters :: Pretty (1) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid (2) -
RSS
:: NotWellFormedError (2) -
RSS
:: Rss :: Channel :: Item :: Guid (1) -
Resolv
:: DNS :: Resource :: MINFO (1) -
Scanf
:: FormatSpecifier (4) -
Scanf
:: FormatString (4) - Shell (2)
-
Shell
:: CommandProcessor (3) -
Shell
:: Filter (2) -
Shell
:: ProcessController (1) -
Shell
:: SystemCommand (1) - String (5)
- Thread (1)
- Time (1)
- Vector (1)
-
WEBrick
:: HTTPUtils :: FormData (7) -
WEBrick
:: Log (1) -
Zlib
:: GzipWriter (1)
モジュール
-
CGI
:: HtmlExtension (4) - DublinCoreModel (3)
- Exception2MessageMapper (2)
-
Gem
:: VersionOption (1) -
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (3) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (1)
- MonitorMixin (1)
-
Net
:: HTTPHeader (2) -
OpenURI
:: OpenRead (2) -
RDoc
:: Text (1)
キーワード
- [] (1)
-
add
_ class (1) -
add
_ class _ or _ module (2) -
add
_ module (1) -
add
_ platform _ option (1) -
add
_ tag (1) -
append
_ data (1) - broadcast (1)
- classes (1)
- convert (2)
-
datetime
_ format (2) -
dc
_ format (1) -
dc
_ format= (1) -
dc
_ formats (1) -
def
_ exception (1) - delete (3)
- determinant (2)
-
determinant
_ e (1) -
each
_ classmodule (1) - element (1)
- fetch (1)
-
file
_ entries (1) -
file
_ entries= (1) - filename (1)
- filename= (1)
-
find
_ enclosing _ module _ named (1) -
find
_ local _ symbol (1) -
find
_ matching (1) -
find
_ module _ named (2) - form (2)
-
form
_ data= (1) -
formatted
_ program _ filename (1) - formatter (1)
- formatter= (1)
-
gem
_ path (1) -
image
_ format (1) - isPermaLink (2)
- isPermaLink= (1)
-
last
_ match _ tried (1) -
last
_ spec _ tried (1) - line (1)
- matched (1)
-
matched
_ count (1) -
matched
_ string (1) -
mid
_ match? (1) - modules (1)
-
multipart
_ form (2) - name (1)
- name= (1)
-
new
_ cond (1) - norm (1)
-
normalize
_ comment (1) - normalized (1)
- normalized= (1)
- open (4)
- permute! (1)
- printf (2)
- prune (1)
-
repeated
_ permutation (2) -
request
_ body _ permitted? (1) -
response
_ body _ permitted? (1) -
return
_ format (1) -
return
_ format= (1) - rmailbx (1)
- rmdir (4)
- scanf (2)
- search (1)
-
set
_ form _ data (1) - signal (1)
- spec (1)
- strftime (2)
- terminate (2)
-
terminate
_ job (1) - terminated? (1)
-
time
_ format (1) -
to
_ json (9) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1) -
to
_ s (1) - transform (1)
-
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - unnormalized (1)
- wait (1)
-
wait
_ until (1) -
wait
_ while (1) - width (2)
- write (1)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (63904.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている HTTP メソッド (GET, POST など)の場合真を返します。
サーバからのレスポンスにエンティティボディを含むことが許されている
HTTP メソッド (GET, POST など)の場合真を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.response_body_permitted? # => true
head = Net::HTTP::Head.new(uri.request_uri)
head.r... -
Shell
:: CommandProcessor # rm(*filename) -> Integer (63607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Gem
:: Installer # formatted _ program _ filename(filename) -> String (55204.0) -
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
@param filename 実行ファイルのファイル名を指定します。 -
String
# unicode _ normalize!(form = :nfc) -> self (55204.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列に置き換えます。
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し
た文字列に置き換えます。
(gsub!などと異なり)変換が行なわれなくても self を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。
//e... -
String
# unicode _ normalize(form = :nfc) -> String (55204.0) -
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し た文字列を返します。
self を NFC、NFD、NFKC、NFKD のいずれかの正規化形式で Unicode 正規化し
た文字列を返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。
このメソッドでの "Unicode 文字列" とは、UTF-8、UTF-16BE/LE... -
String
# unicode _ normalized?(form = :nfc) -> bool (55204.0) -
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か どうかを返します。
self が引数 form で指定された正規化形式で Unicode 正規化された文字列か
どうかを返します。
@param form 正規化形式を :nfc、:nfd、:nfkc、:nfkd のいずれかで指定しま
す。省略した場合は :nfc になります。
@raise Encoding::CompatibilityError self が Unicode 文字列ではない場合
に発生します。
//emlist[例][ruby]{
"a\u0300".unicode_normalized? ... -
Array
# repeated _ permutation(n) -> Enumerator (54976.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (54976.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによる暗
黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby... -
Gem
:: VersionOption # add _ platform _ option(task = command , *wrap) (54904.0) -
option parser に対して --platform オプションを追加します。
option parser に対して --platform オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。 -
GetoptLong
# terminated? -> true | false (54904.0) -
エラーが起きずにオプションの処理が終了しているときは真が 返ります。それ以外のときは、偽が返ります。
エラーが起きずにオプションの処理が終了しているときは真が
返ります。それ以外のときは、偽が返ります。 -
Matrix
:: LUPDecomposition # determinant -> Numeric (54904.0) -
元の行列の行列式の値を返します。 LUP 分解の結果を利用して計算します。
元の行列の行列式の値を返します。
LUP 分解の結果を利用して計算します。
@see Matrix#determinant -
REXML
:: Attribute # normalized=(value) (54904.0) -
正規化された属性値を設定します。
正規化された属性値を設定します。
通常はライブラリが自動的にこの値を設定するので
ユーザはこれを使う必要はないでしょう。
@param value 正規化された属性値 -
REXML
:: Entity # normalized -> String | nil (54904.0) -
正規化された(normalized)実体の値を返します。
正規化された(normalized)実体の値を返します。
すなわち、一切の実体参照を展開していない値を返します。
外部実体(external entity)宣言の場合は nil を返します。
@see REXML::Entity#value, REXML::Entity#unnormalized -
REXML
:: Entity # unnormalized -> String | nil (54904.0) -
非正規化された(unnormalized)実体の値を返します。
非正規化された(unnormalized)実体の値を返します。
すなわち、self が属する DTD によってすべての実体参照(&ent; と %ent; の両方)
を展開した文字列を返します。
外部実体(external entity)宣言の場合は nil を返します。
@see REXML::Entity#value, REXML::Entity#normalized -
Shell
# rm(*filename) -> Integer (54607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Shell
:: Filter # rm(*filename) -> Integer (54607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (54604.0) -
リクエストにエンティティボディを一緒に送ることが許されている HTTP メソッド (POST など)の場合真を返します。
リクエストにエンティティボディを一緒に送ることが許されている
HTTP メソッド (POST など)の場合真を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.request_body_permitted? # => true
head = Net::HTTP::Head.new(uri.request_uri)
head.request_bo... -
Psych
:: Nodes :: Node # transform -> object (54604.0) -
AST を ruby のオブジェクトに変換します。
AST を ruby のオブジェクトに変換します。 -
WEBrick
:: HTTPUtils :: FormData # append _ data(data) -> self (54604.0) -
WEBrick::HTTPUtils の内部で使われます。ユーザがこのメソッドを直接呼ぶことはありません。
WEBrick::HTTPUtils の内部で使われます。ユーザがこのメソッドを直接呼ぶことはありません。 -
Net
:: FTP # rmdir(dirname) -> nil (46204.0) -
リモートサーバ上のディレクトリを削除します。
リモートサーバ上のディレクトリを削除します。
@param dirname 削除するディレクトリ名を文字列で指定します。
@raise Net::FTPReplyError 応答コードが正しくない場合に発生します。削除に失敗した場合に発生します。 -
Logger
:: Formatter # datetime _ format -> String (45904.0) -
ログの日時フォーマットを取得します。
ログの日時フォーマットを取得します。
@see Time#strftime -
MonitorMixin
# new _ cond -> MonitorMixin :: ConditionVariable (45904.0) -
モニターに関連付けられた、新しい MonitorMixin::ConditionVariable を生成して返します。
モニターに関連付けられた、新しい MonitorMixin::ConditionVariable を生成して返します。 -
DublinCoreModel
# dc _ format (45604.0) -
@todo
@todo -
DublinCoreModel
# dc _ format= (45604.0) -
@todo
@todo -
DublinCoreModel
# dc _ formats (45604.0) -
@todo
@todo -
Kernel
# rmdir -> () (45604.0) -
空のディレクトリを削除します。
空のディレクトリを削除します。
ruby -run -e rmdir -- [OPTION] DIR
-p DIR で指定されたディレクトリとその上位ディレクトリを削除します
-v 詳細表示
@see rmdir(1) -
Net
:: HTTPHeader # form _ data=(params) (45604.0) -
HTMLのフォームのデータ params から ヘッダフィールドとボディを設定します。
HTMLのフォームのデータ params から
ヘッダフィールドとボディを設定します。
ヘッダフィールド Content-Type: には
'application/x-www-form-urlencoded' が設定されます。
@param params HTML のフォームデータの Hash を与えます。
@param sep データのセパレータを文字列で与えます。
//emlist[例 form_data][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Ne... -
Net
:: HTTPHeader # set _ form _ data(params , sep = & # 39;&& # 39;) -> () (45604.0) -
HTMLのフォームのデータ params から ヘッダフィールドとボディを設定します。
HTMLのフォームのデータ params から
ヘッダフィールドとボディを設定します。
ヘッダフィールド Content-Type: には
'application/x-www-form-urlencoded' が設定されます。
@param params HTML のフォームデータの Hash を与えます。
@param sep データのセパレータを文字列で与えます。
//emlist[例 form_data][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Ne... -
Pathname
# rmdir -> 0 (45604.0) -
Dir.rmdir(self.to_s) と同じです。
Dir.rmdir(self.to_s) と同じです。
@see Dir.rmdir -
RDoc
:: Text # normalize _ comment(text) -> String (45604.0) -
引数から行頭のスペースや改行文字などを削除します。
引数から行頭のスペースや改行文字などを削除します。
詳しくは [SEE ALSO] の各メソッドを参照してください。
@param text 文字列を指定します。
@see RDoc::Text#strip_hashes, RDoc::Text#expand_tabs,
RDoc::Text#flush_left, RDoc::Text#strip_newlines -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink (45604.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid # isPermaLink=() (45604.0) -
@todo
@todo -
RSS
:: Rss :: Channel :: Item :: Guid # isPermaLink (45604.0) -
@todo
@todo
* http://purl.org/dc/elements/1.1/ -
Scanf
:: FormatSpecifier # matched _ string (45604.0) -
@todo
@todo -
Scanf
:: FormatString # matched _ count (45604.0) -
@todo
@todo -
Shell
:: CommandProcessor # rmdir(*path) -> () (45604.0) -
Dir.rmdirと同じです。 (複数可)
Dir.rmdirと同じです。 (複数可)
@param path 削除するディレクトリ名を文字列で指定します。 -
Shell
:: SystemCommand # terminate -> () (45604.0) -
@todo
@todo -
Exception2MessageMapper
# def _ exception(exception _ name , message _ format , superclass = StandardError) -> Class (37204.0) -
exception_name という名前の例外クラスを定義します。
exception_name という名前の例外クラスを定義します。
@param exception_name 定義する例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマット。
@param superclass 定義する例外のスーパークラスを指定します。
省略すると StandardError を使用します。 -
Gem
:: SpecFetcher # find _ matching(dependency , all = false , matching _ platform = true) -> Array (37204.0) -
依存関係を満たす gemspec の名前の配列を返します。
依存関係を満たす gemspec の名前の配列を返します。
@param dependency 依存関係を指定します。
@param all 真を指定するとマッチする全てのバージョンの情報を返します。
@param matching_platform 偽を指定すると全てのプラットフォームの情報を返します。
@see Gem::Dependency -
Matrix
# determinant _ e -> Rational | Float (37204.0) -
このメソッドは deprecated です。 Matrix#determinant を代わりに使ってください。
このメソッドは deprecated です。
Matrix#determinant を代わりに使ってください。 -
RDoc
:: TopLevel # find _ local _ symbol(name) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule | RDoc :: AnyMethod | RDoc :: Alias | RDoc :: Attr | RDoc :: Constant (37204.0) -
クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。
クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。 -
Logger
# datetime _ format -> String | nil (37012.0) -
ログに記録する時の日付のフォーマットです。
ログに記録する時の日付のフォーマットです。
デフォルトでは nil ですが、この値が nil の場合は日付のフォーマットとして
"%Y-%m-%dT%H:%M:%S.%06d " を使用します。
なお、"%06d" には Time#strftime ではなく、単に Time#usec の
値を String#% でフォーマットしたものが入ります。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.datetime_format # => nil
logger.debug("test")
lo... -
Matrix
# determinant -> Numeric (36904.0) -
行列式 (determinant) の値を返します。
行列式 (determinant) の値を返します。
Float を使用すると、精度が不足するため、誤った結果が生じる可能性があることに注意してください。
代わりに、Rational や BigDecimal などの正確なオブジェクトを使用することを検討してください。
@raise ExceptionForMatrix::ErrDimensionMismatch 正方行列でない場合に発生します
//emlist[例][ruby]{
require 'matrix'
p Matrix[[2, 1], [-1, 2]].det #=> 5
p Matrix[[2.0, 1... -
RDoc
:: Context # find _ enclosing _ module _ named(name) -> RDoc :: NormalModule | nil (36904.0) -
find a module at a higher scope
find a module at a higher scope -
RDoc
:: Context # find _ module _ named(name) -> RDoc :: NormalModule | nil (36904.0) -
追加された RDoc::NormalModule から引数で指定した名前のモジュール を検索します。見つからなかった場合は nil を返します。
追加された RDoc::NormalModule から引数で指定した名前のモジュール
を検索します。見つからなかった場合は nil を返します。
@param name モジュールの名前を文字列で指定します。 -
RDoc
:: TopLevel # find _ module _ named(name) -> RDoc :: NormalModule (36904.0) -
RDoc が収集したクラスの内、name で指定した名前のモジュールを返します。 見つからなかった場合は nil を返します。
RDoc が収集したクラスの内、name で指定した名前のモジュールを返します。
見つからなかった場合は nil を返します。
@param name モジュール名を文字列で指定します。 -
Shell
:: ProcessController # terminate _ job(command) (36904.0) -
指定されたコマンドを終了します。
指定されたコマンドを終了します。
@param command コマンドを指定します。 -
IRB
:: Context # return _ format -> String (36622.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
irb のプロンプトでの評価結果を表示する際のフォーマットを文字列で返します。
@see IRB::Context#return_format=, print_format -
IRB
:: Context # return _ format=(val) (36622.0) -
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
irb のプロンプトでの評価結果を表示する際のフォーマットに val を設定します。
@see IRB::Context#return_format, print_format
IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。 -
Gem
:: OldFormat # file _ entries=(file _ entries) (36604.0) -
Gem パッケージに含まれるファイルの配列をセットします。
Gem パッケージに含まれるファイルの配列をセットします。
@param file_entries -
RDoc
:: Options # formatter -> nil (36604.0) -
使用されていません。常に nil を返します。
使用されていません。常に nil を返します。 -
RDoc
:: Options # image _ format -> String (36604.0) -
コマンドライン引数の --image-format オプションで指定した名前を文字列の 配列で返します。
コマンドライン引数の --image-format オプションで指定した名前を文字列の
配列で返します。
指定しなかった場合は 'png' を返します。 -
Resolv
:: DNS :: Resource :: MINFO # rmailbx -> String (36604.0) -
メーリングリストもしくはメールボックスの 責任者のドメイン名を返します。
メーリングリストもしくはメールボックスの
責任者のドメイン名を返します。 -
Vector
# norm -> Float (36604.0) -
ベクトルの大きさ(ノルム)を返します。
ベクトルの大きさ(ノルム)を返します。
//emlist[例][ruby]{
require 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}
@see Vector#normalize -
Gem
:: OldFormat # file _ entries -> Array (36304.0) -
Gem パッケージに含まれるファイルの配列を返します。
Gem パッケージに含まれるファイルの配列を返します。 -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
[1, 2, 3].to_json # => "[1,2,3]"
//} -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"false" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//} -
JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
(1.0).to_json # => "1.0"
//} -
JSON
:: Generator :: GeneratorMethods :: Hash # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
person = { "name" => "tanaka", "age" => 19 }
person.to_json # ... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
10.to_json # => "10"
//} -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"null" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to_json # => "null"
//} -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (36304.0) -
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
@see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (36304.0) -
生の文字列を格納したハッシュを生成します。
生の文字列を格納したハッシュを生成します。
このメソッドは UTF-8 の文字列ではなく生の文字列を JSON に変換する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json # source sequence is illegal/malformed (JSON::... -
JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String (36304.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//} -
MonitorMixin
:: ConditionVariable # broadcast -> () (36304.0) -
その条件変数で 待っている全てのスレッドの実行を再開します。
その条件変数で
待っている全てのスレッドの実行を再開します。
@see MonitorMixin::ConditionVariable#signal -
MonitorMixin
:: ConditionVariable # signal -> () (36304.0) -
その条件変数で待っているスレッドがあれば実行を再開させます。
その条件変数で待っているスレッドがあれば実行を再開させます。
複数のスレッドが待っている場合には1つのスレッドのみ
実行を再開します。
@see MonitorMixin::ConditionVariable#broadcast -
MonitorMixin
:: ConditionVariable # wait _ until { . . . } -> () (36304.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たすまで停止します。
モニタのロックを開放し、現在のスレッドを
ブロックで指定した条件を満たすまで停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結果によってこのメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@see MonitorMixin::ConditionVariable#wait -
RDoc
:: Markup :: Formatter # convert(content) -> () (36304.0) -
content で指定された文字列を変換します。
content で指定された文字列を変換します。
@param content 変換する文字列を指定します。 -
RDoc
:: Options # formatter=(val) (36304.0) -
使用されていません。
使用されていません。 -
RSS
:: NotWellFormedError # element (36304.0) -
@todo
@todo -
RSS
:: NotWellFormedError # line (36304.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # matched (36304.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # mid _ match? (36304.0) -
@todo
@todo -
Scanf
:: FormatSpecifier # width (36304.0) -
@todo
@todo -
Scanf
:: FormatString # last _ match _ tried (36304.0) -
@todo
@todo -
Scanf
:: FormatString # last _ spec _ tried (36304.0) -
@todo
@todo -
WEBrick
:: HTTPUtils :: FormData # filename -> String | nil (36304.0) -
フォームデータの filename 属性を文字列で表すアクセサです。
フォームデータの filename 属性を文字列で表すアクセサです。
@param value フォームデータの filename 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].filename #=> "my_file.txt"
end
end
MyCGI.new.start() -
WEBrick
:: HTTPUtils :: FormData # filename=(value) (36304.0) -
フォームデータの filename 属性を文字列で表すアクセサです。
フォームデータの filename 属性を文字列で表すアクセサです。
@param value フォームデータの filename 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].filename #=> "my_file.txt"
end
end
MyCGI.new.start() -
WEBrick
:: HTTPUtils :: FormData # name -> String | nil (36304.0) -
フォームデータの name 属性を文字列で表すアクセサです。
フォームデータの name 属性を文字列で表すアクセサです。
@param value フォームデータの name 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].name #=> "q"
end
end
MyCGI.new.start() -
WEBrick
:: HTTPUtils :: FormData # name=(value) (36304.0) -
フォームデータの name 属性を文字列で表すアクセサです。
フォームデータの name 属性を文字列で表すアクセサです。
@param value フォームデータの name 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].name #=> "q"
end
end
MyCGI.new.start() -
RDoc
:: Context # each _ classmodule {|m| . . . } -> [RDoc :: SingleClass | RDoc :: NormalClass | RDoc :: NormalModule] (28504.0) -
追加されたクラス、モジュールに対してブロックを評価します。
追加されたクラス、モジュールに対してブロックを評価します。
@see RDoc::Context#classes, RDoc::Context#modules -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String (28204.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param enctype enctype 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="app... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") { . . . } -> String (28204.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param enctype enctype 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="app... -
CGI
:: HtmlExtension # multipart _ form(action = nil , enctype = "multipart / form-data") -> String (28204.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param action action 属性の値を指定します。
@param enctype enctype 属性の値を指定します。
例:
multipart_form{ "string" }
# <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM> -
CGI
:: HtmlExtension # multipart _ form(action = nil , enctype = "multipart / form-data") { . . . } -> String (28204.0) -
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
enctype 属性に "multipart/form-data" をセットした form 要素を生成します。
ブロックを与えると、ブロックを評価した結果が内容になります。
@param action action 属性の値を指定します。
@param enctype enctype 属性の値を指定します。
例:
multipart_form{ "string" }
# <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM> -
RDoc
:: Context # add _ class _ or _ module(collection , class _ type , name , superclass = nil) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule (28204.0) -
collection に name で指定したクラス、モジュールを追加します。
collection に name で指定したクラス、モジュールを追加します。
@param collection クラス、モジュールを追加する先を Hash オブジェ
クトで指定します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param su... -
RDoc
:: Context # add _ module(class _ type , name) -> RDoc :: NormalModule | RDoc :: SingleClass | RDoc :: NormalClass (28204.0) -
引数で指定したモジュールを追加します。
引数で指定したモジュールを追加します。
ただし、クラスとして既に同名のものが登録されていた場合は、何もせずにそ
のクラスを返します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@see RDoc::Context#add_class -
RDoc
:: Context # modules -> [RDoc :: NormalModule] (28204.0) -
追加された RDoc::NormalModule の配列を返します。
追加された RDoc::NormalModule の配列を返します。 -
Exception2MessageMapper
# def _ e2message(exception _ class , message _ format) -> Class (27904.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
すでに存在する例外クラス exception_class に、
エラーメッセージ用フォーマット message_format を関連づけます。
このフォーマットは Exception2MessageMapper#Raise,
Exception2MessageMapper#Fail で使用します。
@param exception_class メッセージを登録する例外クラスを指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使用できます... -
OpenURI
:: OpenRead # open(mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO (27904.0) -
自身が表すリソースを取得して StringIO オブジェクトとして返します。 OpenURI.open_uri(self, *rest, &block) と同じです。
自身が表すリソースを取得して StringIO オブジェクトとして返します。
OpenURI.open_uri(self, *rest, &block) と同じです。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返します。
返り値である StringIO オブジェクトは OpenURI::Meta モジュールで extend されています。
@param mode モードを文字列で与えます。Kernel.#open と同じです。
@param perm 無視されます... -
OpenURI
:: OpenRead # open(mode = & # 39;r& # 39; , perm = nil , options = {}) {|sio| . . . } -> nil (27904.0) -
自身が表すリソースを取得して StringIO オブジェクトとして返します。 OpenURI.open_uri(self, *rest, &block) と同じです。
自身が表すリソースを取得して StringIO オブジェクトとして返します。
OpenURI.open_uri(self, *rest, &block) と同じです。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返します。
返り値である StringIO オブジェクトは OpenURI::Meta モジュールで extend されています。
@param mode モードを文字列で与えます。Kernel.#open と同じです。
@param perm 無視されます... -
OptionParser
# permute!(argv = self . default _ argv) -> [String] (27904.0) -
与えられた argv を破壊的にパースします。argv からオプションがすべて取り除かれます。 オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。 argv を返します。
与えられた argv を破壊的にパースします。argv からオプションがすべて取り除かれます。
オプションではないコマンドの引数(下の例で言うと somefile)があってもパースを中断しません。
argv を返します。
下の例で言うと、order と違いコマンドの引数 somefile よりも後ろにオプションを置くことが
できます。
@param argv パースしたい引数を文字列の配列で指定します。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際は Optio... -
RDoc
:: Context # add _ class(class _ type , name , superclass) -> RDoc :: SingleClass | RDoc :: NormalClass (27904.0) -
引数で指定したクラスを追加します。
引数で指定したクラスを追加します。
@param class_type 追加するクラス、モジュールを RDoc::NormalClass、
RDoc::SingleClass、RDoc::NormalModule オ
ブジェクトのいずれかで指定します。
@param name クラス名を文字列で指定します。
@param superclass 追加するクラスの親クラスを RDoc::NormalClass オ
ブジェクトで指定します。 -
Scanf
:: FormatString # prune(n=matched _ count) (27607.0) -
@todo
@todo -
Shell
:: CommandProcessor # delete(*filename) -> Integer (27607.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete -
RDoc
:: Markup # convert(str , formatter) -> object | "" (27604.0) -
str で指定された文字列を formatter に変換させます。
str で指定された文字列を formatter に変換させます。
@param str 変換する文字列を指定します。
@param formatter SM::ToHtml、SM::ToLaTeX などのインスタンス
を指定します。
変換結果は formatter によって文字列や配列を返します。 -
RDoc
:: Markup :: Formatter # add _ tag(name , start , stop) -> () (27604.0) -
name で登録された規則で取得された文字列を start と stop で囲むように指 定します。
name で登録された規則で取得された文字列を start と stop で囲むように指
定します。
@param name RDoc::Markup::ToHtml などのフォーマッタに識別させる時
の名前を Symbol で指定します。
@param start 開始の記号を文字列で指定します。
@param stop 終了の記号を文字列で指定します。
例:
require 'rdoc/markup/to_html'
# :STRIKE のフォーマットを <strike> 〜 </strike> に指定。
h = RDoc::Markup:... -
REXML
:: Formatters :: Pretty # width -> Integer (27604.0) -
出力のページ幅を返します。
出力のページ幅を返します。
デフォルトは80です。
@see REXML::Formatters::Pretty#width=