るりまサーチ

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

別のキーワード

  1. string []=
  2. string slice
  3. string []
  4. string slice!
  5. string gsub!

検索結果

<< < ... 2 3 4 >>

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

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

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

: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実...
...ebrick'
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-Length: 2...

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

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

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

: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実...
...ebrick'
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-Length: 2...

Net::POPMail#all {|str| .... } -> nil (10.0)

メールを受信します。

...ックを利用する例:
require 'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print
str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした...

Net::POPMail#all(io) -> object (10.0)

メールを受信します。

...ックを利用する例:
require 'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print
str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした...

Net::POPMail#mail {|str| .... } -> nil (10.0)

メールを受信します。

...ックを利用する例:
require 'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print
str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした...

絞り込み条件を変える

Net::POPMail#mail(io) -> object (10.0)

メールを受信します。

...ックを利用する例:
require 'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print
str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした...

Net::POPMail#pop {|str| .... } -> nil (10.0)

メールを受信します。

...ックを利用する例:
require 'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print
str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした...

Net::POPMail#pop(io) -> object (10.0)

メールを受信します。

...ックを利用する例:
require 'net/pop'

Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print
str
end
end
}

@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした...
<< < ... 2 3 4 >>