532件ヒット
[201-300件を表示]
(0.096秒)
ライブラリ
- ビルトイン (88)
- csv (36)
- dbm (12)
- gdbm (12)
-
net
/ http (264) -
rubygems
/ indexer (36) -
rubygems
/ source _ index (36) - sdbm (12)
- strscan (24)
-
yaml
/ dbm (12)
クラス
-
CSV
:: Table (36) - DBM (12)
- GDBM (12)
-
Gem
:: Indexer (36) -
Gem
:: SourceIndex (36) - MatchData (12)
-
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (96) - Regexp (12)
- SDBM (12)
- String (64)
- StringScanner (24)
-
YAML
:: DBM (12)
モジュール
-
Net
:: HTTPHeader (132)
キーワード
- [] (48)
-
basic
_ auth (12) - body (24)
- byteindex (3)
- byterindex (3)
- bytesplice (10)
- code (12)
- delete (12)
-
dest
_ directory (12) - directory (12)
- entity (12)
- fetch (36)
-
gem
_ signature (12) -
get
_ fields (12) - getbyte (12)
-
http
_ version (12) -
index
_ signature (12) -
main
_ type (12) - method (24)
- msg (12)
-
named
_ captures (12) - path (12)
- pointer= (12)
- pos= (12)
-
proxy
_ basic _ auth (12) -
read
_ body (24) - rindex (12)
-
sanitize
_ string (12) - setbyte (12)
-
spec
_ dirs (12) -
sub
_ type (12) -
values
_ at (12)
検索結果
先頭5件
-
StringScanner
# pos=(n) (3013.0) -
スキャンポインタのインデックスを n にセットします。
...t[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
p s.scan(/\w+/) # => "test"
p s.pos = 1 # => 1
p s.scan(/\w+/) # => "est"
p s.pos = 7 # => 7
p s.scan(/\w+/) # => "ring"
begin
s.pos = 20
rescue RangeError => err
puts err #=> index out of range
end
p s.pos = -4 #... -
CSV
:: Table # [](index) -> CSV :: Row | [String] | nil (210.0) -
ミックスモードでは、このメソッドは引数に行番号を指定すれば行単位で動作 し、ヘッダの名前を指定すれば列単位で動作します。
..._col! を呼び出すとカラム
モードになります。また CSV::Table#by_row! を呼び出すとロウモード
になります。
@param index ミックスモード・ロウモードでは、取得したい行の行番号を整数で指定します。
カラムモードでは... -
MatchData
# values _ at(*index) -> [String] (209.0) -
正規表現中の n 番目の括弧にマッチした部分文字列の配列を返します。
...にマッチした部分文字列の配列を返します。
0 番目は $& のようにマッチした文字列全体を表します。
@param index インデックスを整数またはシンボル(名前付きキャプチャの場合)で 0 個以上指定します。
//emlist[例][ruby]{
m = /(... -
Net
:: HTTPHeader # fetch(key) -> String (122.0) -
key ヘッダフィールドを返します。
...指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。
//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::G......= URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(ur... -
Net
:: HTTPHeader # fetch(key) {|hash| . . . . } -> String (122.0) -
key ヘッダフィールドを返します。
...指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。
//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::G......= URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(ur... -
Net
:: HTTPHeader # fetch(key , default) -> String (122.0) -
key ヘッダフィールドを返します。
...指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。
//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::G......= URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(ur... -
Net
:: HTTPGenericRequest # path -> String (114.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
CSV
:: Table # [](header) -> [String] | [nil] (110.0) -
ミックスモードでは、このメソッドは引数に行番号を指定すれば行単位で動作 し、ヘッダの名前を指定すれば列単位で動作します。
..._col! を呼び出すとカラム
モードになります。また CSV::Table#by_row! を呼び出すとロウモード
になります。
@param index ミックスモード・ロウモードでは、取得したい行の行番号を整数で指定します。
カラムモードでは... -
Net
:: HTTPResponse # body -> String | () | nil (109.0) -
エンティティボディを返します。
...dapter のインスタンスを返しますが、
これは使わないでください。
entity は obsolete です。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.body[0..10] # => "<!doctype h"
//}...