るりまサーチ

最速Rubyリファレンスマニュアル検索!
242件ヒット [1-100件を表示] (0.079秒)

別のキーワード

  1. _builtin length
  2. rss length=
  3. csv length
  4. dbm length
  5. set length

検索結果

<< 1 2 3 > >>

RSS::Rss::Channel::Item::Enclosure#length= (15102.0)

@todo

@todo

RSS::Maker::RSS20::Items::Item::Enclosure#length=() (15101.0)

@todo

@todo

Net::HTTPHeader#content_length=(len) (6107.0)

Content-Length: ヘッダフィールドに値を設定します。

...

@param len 設定する値を整数で与えます。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length # => nil
req.content_length = 10 # => 10
req.content_length # => 10
//}...

JSON::State#buffer_initial_length=(length) (6101.0)

This sets the initial length of the buffer to length, if length > 0, otherwise its value isn't changed.

This sets the initial length of the buffer to length, if length > 0,
otherwise its value isn't changed.

WEBrick::HTTPResponse#content_length=(len) (3107.0)

Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。

...require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
f = File.new('testfile')
res.body = f
res.content_length = 2
print res.to_s

#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 12:04:32 GMT
Server:
Content-Len...

絞り込み条件を変える

OpenSSL::Buffering#read(length=nil, buf=nil) -> String | nil (102.0)

文字列を通信路から読み込み、返します。

文字列を通信路から読み込み、返します。

読み込みが終端に到達している場合は nil を返します。

length で読み込むバイト数を指定します。
length に 0 を渡した場合は空文字列を返します。
length に nil を渡した場合(省略した場合)は最後
までのデータを読み込みます。

bufに文字列を渡した場合はその領域が出力用のバッファとして利用されます。

IO#read と同様です。

@param length 読み込むバイト数
@param buf 読み込みバッファ

Net::HTTPHeader#content_length -> Integer|nil (7.0)

Content-Length: ヘッダフィールドの表している値を整数で返します。

...正である場合に
発生します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length # => nil
req.content_length = 10
req.content_length # => 10
//}...

Net::HTTPHeader#delete(key) -> [String] | nil (7.0)

key ヘッダフィールドを削除します。

...
nil を返します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length = 10
req.content_length # => 10
req.delete("Content-Length") # => ["10"]
req.content_length # => nil
//}...

WEBrick::HTTPResponse#content_length -> Integer | nil (7.0)

Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。

...require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
f = File.new('testfile')
res.body = f
res.content_length = 2
print res.to_s

#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 12:04:32 GMT
Server:
Content-Len...

Array#fill {|index| ... } -> self (3.0)

すべての要素に val をセットします。

すべての要素に val をセットします。

このメソッドが val のコピーでなく val 自身をセットする
ことに注意してください。
val の代わりにブロックを指定するとブロックの評価結果を値とします。

@param val 自身にセットしたいオブジェクトを指定します。

//emlist[例][ruby]{
a = [0, 1, 2, 3, 4]
a.fill(10)
p a #=> [10, 10, 10, 10, 10]

a = [0, 1, 2, 3, 4]
a.fill("a")
p a #=> ["a", "a", "a", "a", "a"]
a[0].capitali...

絞り込み条件を変える

<< 1 2 3 > >>