るりまサーチ

最速Rubyリファレンスマニュアル検索!
341件ヒット [1-100件を表示] (0.062秒)
トップページ > クエリ:-[x] > クエリ:TEXT[x] > クエリ:content[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

検索結果

<< 1 2 3 ... > >>

REXML::Instruction#content -> String | nil (18255.0)

XML 処理命令の内容を返します。

...ersion="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}...

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

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

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

@see 2045...

OpenURI::Meta#content_type -> String (6337.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 #=> "text/h...
... 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 #=> "text/...

Net::HTTPHeader#content_type -> String|nil (6291.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"
//}...

WEBrick::HTTPResponse#content_type=(val) (6157.0)

Content-Type ヘッダの値をセットします。

...
Content
-Type ヘッダの値をセットします。

@param val Content-Type ヘッダの値を文字列で指定します。

res.content_type = "text/html"

@see WEBrick::HTTPUtils.#mime_type...

絞り込み条件を変える

open-uri (6114.0)

http/ftp に簡単にアクセスするためのクラスです。 Kernel.#open を再定義します。

...#open を再定義します。

=== 使用例

http/ftp の URL を、普通のファイルのように開けます。

require 'open-uri'
open("http://www.ruby-lang.org/") {|f|
f.each_line {|line| p line}
}

開いたファイルオブジェクトは StringIO もしくは Tempfile で
...
...

require 'open-uri'
open("http://www.ruby-lang.org/en") {|f|
f.each_line {|line| p line}
p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
p f.content_type # "text/html"
p f.charset # "iso-8859-1"
p f.content_encoding # []
p f....
...加のヘッダフィールドを指定できます。

require 'open-uri'
open("http://www.ruby-lang.org/en/",
"User-Agent" => "Ruby/#{RUBY_VERSION}",
"From" => "foo@bar.invalid",
"Referer" => "http://www.ruby-lang.org/") {|f|
...
}

http_proxy や ftp_proxy などの環境変...
...ためのクラスです。

=== 使用例

http/ftp の URL を、普通のファイルのように開けます。

require 'open-uri'
URI.open("http://www.ruby-lang.org/") {|f|
f.each_line {|line| p line}
}

開いたファイルオブジェクトは StringIO もしくは Tempfile で...
...

require 'open-uri'
URI.open("http://www.ruby-lang.org/en") {|f|
f.each_line {|line| p line}
p f.base_uri # <URI::HTTP:0x40e6ef2 URL:http://www.ruby-lang.org/en/>
p f.content_type # "text/html"
p f.charset # "iso-8859-1"
p f.content_encoding # []...
...のヘッダフィールドを指定できます。

require 'open-uri'
URI.open("http://www.ruby-lang.org/en/",
"User-Agent" => "Ruby/#{RUBY_VERSION}",
"From" => "foo@bar.invalid",
"Referer" => "http://www.ruby-lang.org/") {|f|
...
}

http_proxy や ftp_proxy などの環境...

Net::IMAP::BodyTypeText (6048.0)

Content-Type が text であるメッセージを表すクラスです。

...Content-Type が text であるメッセージを表すクラスです。

平文のメールを表します。
詳しくは MIME のRFC(2045)を参照してください。...

ruby 1.6 feature (5352.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

...グ修正がメイン
になります。

((<stable-snapshot|URL:ftp://ftp.netlab.co.jp/pub/lang/ruby/stable-snapshot.tar.gz>)) は、日々更新される安定版の最新ソースです。

== 1.6.8 (2002-12-24) -> stable-snapshot

: 2003-01-22: errno

EAGAIN と EWOULDBLOCK が同じ値の...
...1-09-19) [i586-linux]
sub:sub
main:main
sub:sub
main:main

: net/telnet

Net::Telnet が特定のホストへ接続後、動かない事がありました。
((<ruby-list:31303>))

: CGI#header

以下のようなスクリプトでTEXT_PLAINが"text/...
...ire 'cgi'

TEXT
_PLAIN = "text/plain"

cgi = CGI.new
print cgi.header("type" => TEXT_PLAIN,
"charset" => "iso-8859-1")
printf("TEXT_PLAIN: %s\n", TEXT_PLAIN)

=> ruby 1.6.4 (2001-06-04) [i586-linux]
Content
-Type: text/plain;...

Net::IMAP::BodyTypeText#disposition -> Net::IMAP::ContentDisposition | nil (3232.0)

Content-Dispotition の値を返します。

...Content-Dispotition の値を返します。

Net::IMAP::ContentDisposition オブジェクトを返します。

@see 1806, 2183...

Net::IMAP::BodyTypeText#encoding -> String (3148.0)

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

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

@see 2045...

絞り込み条件を変える

<< 1 2 3 ... > >>