別のキーワード
ライブラリ
- ビルトイン (65)
-
cgi
/ core (12) - csv (12)
-
net
/ http (288) - open-uri (48)
- optparse (12)
-
rexml
/ document (132) - un (12)
-
webrick
/ httprequest (12) - win32ole (48)
クラス
- CGI (12)
- CSV (12)
- Data (3)
-
File
:: Stat (12) -
Net
:: HTTP (180) - OptionParser (12)
-
REXML
:: DocType (108) -
REXML
:: Instruction (24) -
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (12) -
WEBrick
:: HTTPRequest (12) -
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (24)
- Kernel (12)
-
Net
:: HTTPHeader (108) -
OpenURI
:: Meta (48)
キーワード
-
attribute
_ of (12) -
attributes
_ of (12) - charset (24)
- children (7)
- content (12)
-
content
_ type (24) -
content
_ type= (12) -
default
_ event _ sources (12) - entities (12)
- entity (12)
-
external
_ id (12) -
form
_ data= (12) - ftype (12)
- get2 (24)
- head (12)
- head2 (24)
- header (12)
- helpfile (12)
- inspect (12)
- invkind (12)
- key? (12)
-
main
_ type (12) - mkmf (12)
- name (12)
- path (12)
- post (24)
- post2 (24)
- public (12)
- query (12)
- reject (12)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
set
_ content _ type (12) -
set
_ form _ data (12) -
slice
_ before (24) -
sub
_ type (12) - system (12)
- target (12)
-
to
_ a (12) -
type
_ params (12) - with (3)
- write (12)
検索結果
先頭5件
-
RubyVM
:: AbstractSyntaxTree :: Node # type -> Symbol (24114.0) -
self の種類を Symbol で返します。
...self の種類を Symbol で返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.type # => :SCOPE
//}... -
Net
:: HTTPHeader # type _ params -> Hash (12236.0) -
Content-Type のパラメータを {"charset" => "iso-2022-jp"} という形の Hash で返します。
...-Type のパラメータを {"charset" => "iso-2022-jp"}
という形の Hash で返します。
Content-Type: ヘッダフィールドが存在しない場合には
空のハッシュを返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
r......es = Net::HTTP.get_response(uri)
res.type_params # => {"charset"=>"UTF-8"}
//}... -
Net
:: HTTPHeader # set _ content _ type(type , params = {}) (9367.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
...type と params から Content-Type: ヘッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.......example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data' # => "multipart/form-data"
req.content_type # => "multipart/form-data"
//}... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (9307.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...ト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。
elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣言されていない......す。
@param element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED......title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (9292.0) -
型が持つソースインターフェイスを取得します。
...default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるインターフェイス)を返します。
@return デフォルト......のソースインターフェイスをWIN32OLE_TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大でも1インターフェイスです。ソースインターフェイスを持
たない場合は......空配列を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]
WIN32OLE_EVENT.newでインターフェイス名を指定しない場合は、ここで
返されたインターフェ... -
OpenURI
:: Meta # content _ type -> String (9268.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=(type) (9267.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
...type と params から Content-Type: ヘッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.......example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data' # => "multipart/form-data"
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTPHeader # content _ type -> String|nil (9248.0) -
"text/html" のような Content-Type を表す 文字列を返します。
...tent-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.co......ntent_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTPHeader # main _ type -> String|nil (9220.0) -
"text/html" における "text" のようなタイプを表す 文字列を返します。
...タイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.main_type # => "text"
//}...