別のキーワード
種類
ライブラリ
クラス
- Addrinfo (12)
- CGI (12)
- CSV (12)
- Data (3)
- Enumerator (6)
- File (12)
-
File
:: Stat (12) -
Net
:: HTTP (180) - OptionParser (24)
-
RDoc
:: Parser :: Ruby (24) -
REXML
:: DocType (108) -
REXML
:: Instruction (24) -
REXML
:: Text (12) -
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (36) - Socket (12)
-
URI
:: FTP (12) -
WEBrick
:: HTTPRequest (12) -
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ TYPE (48) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIANT (12)
モジュール
- Enumerable (24)
- Kernel (88)
-
Net
:: HTTPHeader (108) - ObjectSpace (24)
-
OpenURI
:: Meta (48) -
RubyVM
:: AbstractSyntaxTree (18)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ASN1 (12)
- BlockCaller (12)
- Closure (12)
-
Data
_ Get _ Struct (12) -
Data
_ Make _ Struct (12) - Instruction (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NORMAL (12)
- NotationDecl (12)
- Ruby用語集 (12)
- SINGLE (12)
-
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIABLE (12) -
attribute
_ of (12) -
attributes
_ of (12) - cgi (12)
-
cgi
/ session (12) - charset (24)
- children (7)
- content (12)
-
content
_ type (24) -
content
_ type= (12) -
count
_ tdata _ objects (12) -
default
_ event _ sources (12) - disasm (12)
- disassemble (12)
- entities (12)
- entity (12)
-
external
_ id (12) - fail (36)
- fiddle (12)
-
form
_ data= (12) - ftype (24)
- get2 (24)
- getaddrinfo (12)
- head (12)
- head2 (24)
- header (12)
- helpfile (12)
- inspect (12)
- invkind (12)
- key? (12)
-
main
_ type (12) - mkmf (12)
- name (12)
- new (36)
- of (6)
-
ole
_ classes (12) - open (4)
- open-uri (12)
- parse (6)
-
parse
_ file (6) - path (12)
- post (24)
- post2 (24)
- produce (6)
- public (12)
- query (12)
- raise (36)
-
rb
_ assoc _ new (12) -
rb
_ class _ real (12) - rdoc (12)
-
rdoc
/ markdown (12) -
reachable
_ objects _ from (12) - reject (24)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) - rss (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
set
_ content _ type (12) -
set
_ form _ data (12) -
slice
_ before (24) -
sub
_ type (12) - system (12)
- target (12)
-
test
/ unit (1) -
to
_ a (12) -
type
_ params (12) - typelibs (12)
- unnormalize (12)
-
webrick
/ cgi (12) - with (3)
- write (12)
- yaml (12)
- クラス/メソッドの定義 (12)
- 制御構造 (12)
検索結果
先頭5件
-
RubyVM
:: AbstractSyntaxTree :: Node # type -> Symbol (21113.0) -
self の種類を Symbol で返します。
...self の種類を Symbol で返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.type # => :SCOPE
//}... -
WIN32OLE
_ TYPE . typelibs -> [String] (9106.0) -
システムに登録されているすべてのTypeLibのドキュメント文字列を取得します。
...TypeLibのドキュメント文字列を取得します。
@return システムに登録されているすべてのTypeLibのドキュメント文字列の配
列を返します。
Ruby-1.9.1からは、すべてのTypeLibのドキュメント文字列を取得するには、
WIN32OLE_TYPE......LIBオブジェクトを利用して、以下のように記述してくだ
さい。
WIN32OLE_TYPELIB.typelibs.map {|t| t.name}... -
Net
:: HTTPHeader # content _ type=(type) (6266.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 # set _ content _ type(type , params = {}) (6266.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"
//}... -
OpenURI
:: Meta # content _ type -> String (6167.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 (6147.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"
//}... -
Net
:: HTTPHeader # type _ params -> Hash (6135.0) -
Content-Type のパラメータを {"charset" => "iso-2022-jp"} という形の Hash で返します。
...Content-Type のパラメータを {"charset" => "iso-2022-jp"}
という形の Hash で返します。
Content-Type: ヘッダフィールドが存在しない場合には
空のハッシュを返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.h......tml')
res = Net::HTTP.get_response(uri)
res.type_params # => {"charset"=>"UTF-8"}
//}... -
Net
:: HTTPHeader # main _ type -> String|nil (6119.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"
//}... -
Net
:: HTTPHeader # sub _ type -> String|nil (6119.0) -
"text/html" における "html" のようなサブタイプを表す 文字列を返します。
...タイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.sub_type # => "html"
//}...