別のキーワード
ライブラリ
クラス
- Array (19)
- CGI (11)
-
CSV
:: Row (22) -
CSV
:: Table (33) - DBM (22)
-
Fiddle
:: Pointer (11) - GDBM (22)
-
JSON
:: Parser (11) -
JSON
:: State (44) - Matrix (121)
-
Net
:: HTTPResponse (11) -
OpenSSL
:: ASN1 :: ObjectId (22) -
OpenSSL
:: Config (11) -
OpenSSL
:: X509 :: Extension (22) - OpenStruct (22)
- OptionParser (132)
- Prime (11)
-
REXML
:: Attribute (11) -
REXML
:: Attributes (33) -
REXML
:: CData (22) -
REXML
:: DocType (11) -
REXML
:: Element (66) -
REXML
:: Text (22) - Range (11)
- SDBM (44)
- String (22)
- Vector (6)
-
WEBrick
:: Cookie (11) -
WEBrick
:: HTTPUtils :: FormData (44)
モジュール
-
Fiddle
:: Importer (22) -
Net
:: HTTPExceptions (11) - Open3 (44)
- URI (22)
キーワード
- Config (11)
- Entity (11)
- Ruby用語集 (11)
-
WIN32OLE
_ VARIABLE (11) - []= (39)
-
add
_ attribute (22) -
add
_ attributes (11) -
attributes
_ of (11) -
cgi
/ session (11) - coerce (11)
- configure (11)
-
create
_ value (11) -
decode
_ www _ form (11) -
delete
_ if (22) - diagonal (11)
- each (22)
-
each
_ attribute (11) -
each
_ element _ with _ attribute (11) -
each
_ pair (22) - eigen (11)
- eigensystem (11)
-
encode
_ www _ form (11) - filename (11)
- filename= (11)
-
find
_ index (33) -
get
_ text (11) - indent (11)
- indent= (11)
- index (33)
- merge (11)
- name (11)
- name= (11)
-
net
/ imap (11) - new (66)
- on (132)
- pack (19)
- pack テンプレート文字列 (11)
- parse (11)
-
parse
_ csv (11) -
pipeline
_ r (22) -
pipeline
_ start (22) -
prime
_ division (11) -
rb
_ f _ require (11) -
rb
_ require (11) - reject! (11)
- response (11)
-
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) - scalar (11)
- select (22)
- store (11)
- text (11)
-
to
_ s (22) -
to
_ string (11) -
to
_ value (11) - unpack (11)
-
values
_ at (55) -
win32
/ registry (11)
検索結果
先頭5件
-
Fiddle
:: Importer # value(type , val = nil) -> Fiddle :: CStruct (27348.0) -
型が type で要素名が "value" であるような構造体を 定義(Fiddle::Importer#struct)し、 その構造体のメモリを Fiddle::CStruct#malloc で確保し、 確保したメモリを保持しているオブジェクトを返します。
...型が type で要素名が "value" であるような構造体を
定義(Fiddle::Importer#struct)し、
その構造体のメモリを Fiddle::CStruct#malloc で確保し、
確保したメモリを保持しているオブジェクトを返します。
type は "int", "void*" といった文字列......に nil 以外を指定すると、確保された構造体に
その値を代入します。
@param type 型を表す文字列
@param val 構造体に確保される初期値
例
require 'fiddle/import'
module M
extend Fiddle::Importer
end
v = M.value("int", 32)
p v.value # =>......32
v.value = 48
p v.value # => 48... -
REXML
:: Text # value -> String (27313.0) -
テキストの内容を非正規化(すべての実体をアンエスケープ)された状態で返します。
...。
このメソッドの返り値では raw モードや entity_filter は無視されます。
@see REXML::Text#raw, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//}... -
Net
:: HTTPResponse # value -> nil (24343.0) -
レスポンスが 2xx(成功)でなかった場合に、対応する 例外を発生させます。
...せます。
@raise HTTPError レスポンスが 1xx であるか、 net/http が知らない
種類のレスポンスである場合に発生します。
@raise HTTPRetriableError レスポンスが 3xx である場合に発生します。
@raise HTTPServerException レスポン......す。
@raise HTTPFatalError レスポンスが 5xx である場合に発生します。
//emlist[例 レスポンスが 2xx(成功)][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.value # => nil
//}
//emlist[例 レ......スポンスが 2xx以外][ruby]{
require 'net/http'
uri = "http://www.example.com/invalid.html"
response = Net::HTTP.get_response(URI.parse(uri))
begin
response.value
rescue => e
e.class # => Net::HTTPServerException
e.message # => 404 "Not Found"
end
//}... -
REXML
:: CData # value -> String (21319.0) -
テキスト文字列を返します。
...テキスト文字列を返します。
@see REXML::Text#value, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root><![CDATA[foobar baz]]></root>
EOS
doc.root[0].class # => REXML::CData
doc.root[0].value # => "foobar baz"
//}... -
VALUE rb
_ f _ require(VALUE obj , VALUE fname) (18832.0) -
require の実体。 self == obj として fname を require します。
...
require の実体。
self == obj として fname を require します。... -
VALUE rb
_ require(const char *fname) (18416.0) -
require の C 版です。feature「fname」をロードします。
...
require の C 版です。feature「fname」をロードします。... -
Matrix
# find _ index(value , selector = :all) -> [Integer , Integer] | nil (15622.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}
value を......指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Matrix
# find _ index(selector = :all) {|e| . . . } -> [Integer , Integer] | nil (15522.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...selector で行列のどの部分を探すかを指定します。この引数の意味は
Matrix#each を参照してください。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}
value を......指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param selector 探索範囲... -
Prime
# prime _ division(value , generator= Prime :: Generator23 . new) -> [[Integer , Integer]] (15443.0) -
与えられた整数を素因数分解します。
...@param value 素因数分解する任意の整数を指定します。
@param generator 素数生成器のインスタンスを指定します。
@return 素因数とその指数から成るペアを要素とする配列です。つまり、戻り値の各要素は2要素の配列 [n,e] であ......n は value の素因数、第2要素は n**e が value を割り切る最大の自然数 e です。
@raise ZeroDivisionError 与えられた数値がゼロである場合に発生します。
//emlist[例][ruby]{
require 'prime'
Prime.prime_division(12) #=> [[2,2], [3,1]]
Prime.prime_division(10......) #=> [[2,1], [5,1]]
//}
@see Prime.prime_division, Prime::EratosthenesGenerator, Prime::TrialDivisionGenerator, Prime::Generator23... -
Fiddle
:: Importer # create _ value(type , val = nil) -> Fiddle :: CStruct (15348.0) -
型が type で要素名が "value" であるような構造体を 定義(Fiddle::Importer#struct)し、 その構造体のメモリを Fiddle::CStruct#malloc で確保し、 確保したメモリを保持しているオブジェクトを返します。
...型が type で要素名が "value" であるような構造体を
定義(Fiddle::Importer#struct)し、
その構造体のメモリを Fiddle::CStruct#malloc で確保し、
確保したメモリを保持しているオブジェクトを返します。
type は "int", "void*" といった文字列......に nil 以外を指定すると、確保された構造体に
その値を代入します。
@param type 型を表す文字列
@param val 構造体に確保される初期値
例
require 'fiddle/import'
module M
extend Fiddle::Importer
end
v = M.value("int", 32)
p v.value # =>......32
v.value = 48
p v.value # => 48...