るりまサーチ

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

別のキーワード

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

検索結果

<< 1 2 3 ... > >>

RDoc::Markup#content -> String (21203.0)

変換する文字列を返します。

...ブラリのデバッグ用途に使用します。
SM::SimpleMarkup#convert の後に実行します。

変換のために加工したオブジェクトを改行で連結したものを返すため、変換前
の文字列と結果が異なる事があります。

@see SM::SimpleMarkup#convert...

Net::IMAP::ContentDisposition#param -> { String => String } | nil (9319.0)

Content-Disposition フィールドのパラメータをハッシュテーブルで 返します。

...Content-Disposition フィールドのパラメータをハッシュテーブルで
返します。

ハッシュテーブルのキーは以下のような値を取ります。詳しくは
2183 などを見てください。
* "FILENAME"
* "CREATION-DATE"
* "MODIFICATION-DATE"
* "READ-DAT"...

OpenURI::Meta#content_type -> String (9257.0)

対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。

...ースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content
-Type ヘッダがない場合は、"application/octet-stream" を返します。

//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "...
...ースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content
-Type ヘッダがない場合は、"application/octet-stream" を返します。

//emlist[例][ruby]{
require 'open-uri'
URI.open('http://www.ruby-lang.org/') {|f|
p f.content_type #...

Net::HTTPHeader#content_type -> String|nil (9243.0)

"text/html" のような Content-Type を表す 文字列を返します。

..."text/html" のような Content-Type を表す
文字列を返します。

Content
-Type: ヘッダフィールドが存在しない場合には nil を返します。

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

uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post...
....new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}...

OpenURI::Meta#content_encoding -> [String] (9241.0)

対象となるリソースの Content-Encoding を文字列の配列として返します。 Content-Encoding ヘッダがない場合は、空の配列を返します。

...象となるリソースの Content-Encoding を文字列の配列として返します。
Content
-Encoding ヘッダがない場合は、空の配列を返します。

例:

//emlist[例][ruby]{
require 'open-uri'
open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]
}
//...
...象となるリソースの Content-Encoding を文字列の配列として返します。
Content
-Encoding ヘッダがない場合は、空の配列を返します。

例:

//emlist[例][ruby]{
require 'open-uri'
URI.open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]...

絞り込み条件を変える

Net::IMAP::BodyTypeBasic#content_id -> String | nil (9219.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

Net::IMAP::BodyTypeMessage#content_id -> String | nil (9219.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

Net::IMAP::BodyTypeText#content_id -> String | nil (9219.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

OpenURI::OpenRead#read(options = {}) -> String (9214.0)

自身が表す内容を読み込んで文字列として返します。 self.open(options={}) {|io| io.read } と同じです。 このメソッドによって返される文字列は OpenURI::Meta によって extend されています。

...o.read } と同じです。
このメソッドによって返される文字列は OpenURI::Meta
によって extend されています。

@param options ハッシュを与えます。

require 'open-uri'
uri = URI.parse('http://www.example.com/')
str = uri.read
p str.is_a?(OpenURI::Meta) #...
...=> true
p str.content_type...
<< 1 2 3 ... > >>