2994件ヒット
[2901-2994件を表示]
(0.166秒)
ライブラリ
- ビルトイン (70)
-
cgi
/ core (22) -
cgi
/ html (44) -
irb
/ context (473) -
irb
/ ext / history (22) -
irb
/ ext / math-mode (8) -
irb
/ ext / save-history (44) -
irb
/ ext / tracer (33) -
irb
/ ext / use-loader (33) -
irb
/ extend-command (11) -
net
/ ftp (44) -
net
/ http (33) -
net
/ imap (132) -
net
/ smtp (44) - open-uri (11)
- openssl (880)
- pp (22)
- prettyprint (23)
-
rdoc
/ context (330) -
rdoc
/ markup (11) -
rdoc
/ text (33) - rexml (11)
-
rexml
/ document (275) -
rexml
/ parsers / pullparser (11) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (33) - rss (242)
-
rubygems
/ installer (11) - uri (22)
-
webrick
/ httpresponse (11) -
webrick
/ httputils (11) -
webrick
/ ssl (11) - win32ole (22)
クラス
- CGI (22)
-
Enumerator
:: Yielder (5) -
Gem
:: Installer (11) -
IRB
:: Context (613) - Method (12)
-
Net
:: FTP (44) -
Net
:: IMAP :: BodyTypeMessage (11) -
Net
:: IMAP :: BodyTypeMultipart (11) -
Net
:: IMAP :: BodyTypeText (99) -
Net
:: IMAP :: ResponseText (11) -
Net
:: SMTP (44) - Object (11)
-
ObjectSpace
:: WeakMap (11) -
OpenSSL
:: Netscape :: SPKI (11) -
OpenSSL
:: PKCS7 (22) -
OpenSSL
:: PKey :: DH (11) -
OpenSSL
:: PKey :: DSA (11) -
OpenSSL
:: PKey :: EC (11) -
OpenSSL
:: PKey :: EC :: Group (11) -
OpenSSL
:: PKey :: RSA (11) -
OpenSSL
:: SSL :: SSLContext (594) -
OpenSSL
:: SSL :: SSLSocket (11) -
OpenSSL
:: SSL :: Session (11) -
OpenSSL
:: X509 :: CRL (11) -
OpenSSL
:: X509 :: Certificate (11) -
OpenSSL
:: X509 :: Request (11) -
OpenSSL
:: X509 :: StoreContext (143) - PP (11)
- PrettyPrint (23)
- Proc (12)
-
RDoc
:: Context (297) -
RDoc
:: Context :: Section (33) -
RDoc
:: Markup (11) -
REXML
:: CData (22) -
REXML
:: DocType (11) -
REXML
:: Element (110) -
REXML
:: Instruction (22) -
REXML
:: ParseException (11) -
REXML
:: Parsers :: PullEvent (11) -
REXML
:: Text (110) -
RSS
:: Maker :: TextinputBase (44) -
RSS
:: RDF :: Channel (22) -
RSS
:: RDF :: Channel :: Textinput (22) -
RSS
:: RDF :: Textinput (44) -
RSS
:: Rss :: Channel (22) -
RSS
:: Rss :: Channel :: TextInput (88) - String (30)
-
URI
:: MailTo (22) -
WEBrick
:: GenericServer (11) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPUtils :: FormData (11) -
WIN32OLE
_ METHOD (11) -
WIN32OLE
_ TYPE (11)
モジュール
-
CGI
:: HtmlExtension (44) -
IRB
:: ExtendCommandBundle (11) -
Net
:: HTTPHeader (33) -
OpenURI
:: Meta (11) -
RDoc
:: Text (33) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (33)
キーワード
- +@ (9)
- -@ (9)
- << (12)
- <=> (11)
- == (11)
- >> (12)
- [] (11)
- []= (11)
-
add
_ alias (11) -
add
_ class (11) -
add
_ class _ or _ module (11) -
add
_ include (11) -
add
_ module (11) -
add
_ special (11) - aliases (11)
-
ap
_ name= (11) -
app
_ script _ text (11) -
auto
_ indent _ mode (11) -
auto
_ indent _ mode= (11) -
back
_ trace _ limit (11) -
back
_ trace _ limit= (11) - body (11)
-
ca
_ file (11) -
ca
_ file= (11) -
ca
_ path (11) -
ca
_ path= (11) - cert (11)
- cert= (11)
-
cert
_ store (11) -
cert
_ store= (11) - chain (11)
- characters (11)
- charset (11)
- ciphers (11)
- ciphers= (11)
- classes (11)
- cleanup (11)
-
client
_ ca (11) -
client
_ ca= (11) -
client
_ cert _ cb (11) -
client
_ cert _ cb= (11) - clone (11)
- code (11)
-
comma
_ breakable (11) - comment (11)
- content (11)
-
content
_ id (11) -
content
_ type (11) -
content
_ type= (11) - context (44)
- context= (11)
-
current
_ cert (11) -
current
_ crl (11) - debug? (11)
-
debug
_ level (11) -
debug
_ level= (11) - decrypt (11)
- dedup (2)
-
defined
_ in? (11) - description (22)
- description= (11)
- disposition (11)
- doctype (11)
-
each
_ classmodule (11) -
each
_ element _ with _ text (11) - echo (11)
- echo= (11)
- echo? (11)
- empty? (11)
-
enable
_ ssl (11) -
enable
_ starttls (11) -
enable
_ starttls _ auto (11) -
enable
_ tls (11) - entitydecl (11)
- error (11)
- error= (11)
-
error
_ depth (11) -
error
_ string (11) -
eval
_ history (11) -
eval
_ history= (11) - evaluate (11)
- extension (11)
-
extra
_ chain _ cert (11) -
extra
_ chain _ cert= (11) -
file
_ input? (11) -
find
_ enclosing _ module _ named (11) -
find
_ local _ symbol (11) -
find
_ module _ named (11) -
find
_ symbol (11) - first? (1)
- flags= (11)
-
flush
_ left (11) -
flush
_ sessions (11) -
get
_ text (11) - gettextfile (22)
- group (11)
-
has
_ elements? (11) -
has
_ text? (11) - header (11)
- helpcontext (22)
-
history
_ file (11) -
history
_ file= (11) -
ignore
_ eof (11) -
ignore
_ eof= (11) -
ignore
_ eof? (11) -
ignore
_ sigint (11) -
ignore
_ sigint= (11) -
ignore
_ sigint? (11) -
in
_ files (11) - includes (11)
-
initialize
_ classes _ and _ modules (11) -
initialize
_ methods _ etc (11) - inspect? (11)
-
inspect
_ mode (11) - instruction (11)
- io= (11)
- irb= (11)
-
irb
_ context (11) -
irb
_ name= (11) -
irb
_ path= (11) - key (11)
- key= (11)
- language (11)
-
last
_ value (11) - lines (11)
- link (33)
- link= (33)
-
load
_ modules (11) -
main
_ type (11) - math? (4)
-
math
_ mode (4) - md5 (11)
-
method
_ list (11) - modules (11)
- multipart? (11)
- name (11)
- name= (11)
-
next
_ element (11) -
node
_ type (11) -
normalize
_ comment (11) -
ongoing
_ visibility= (11) - out (11)
- param (11)
- parts (11)
-
pretty
_ print _ cycle (11) -
prompt
_ c= (11) -
prompt
_ i= (11) -
prompt
_ mode (11) -
prompt
_ n= (11) -
prompt
_ s= (11) - prompting? (11)
- purpose= (11)
- puttextfile (22)
- raw (11)
- raw= (11)
- rc (11)
- rc? (11)
-
record
_ location (11) -
renegotiation
_ cb (11) -
renegotiation
_ cb= (11) - resource (11)
- resource= (11)
-
return
_ format= (11) -
save
_ history (11) -
save
_ history= (11) -
servername
_ cb (11) -
servername
_ cb= (11) -
session
_ add (11) -
session
_ cache _ mode (11) -
session
_ cache _ mode= (11) -
session
_ cache _ size (11) -
session
_ cache _ size= (11) -
session
_ cache _ stats (11) -
session
_ get _ cb (11) -
session
_ get _ cb= (11) -
session
_ id _ context (11) -
session
_ id _ context= (11) -
session
_ new _ cb (11) -
session
_ new _ cb= (11) -
session
_ remove (11) -
session
_ remove _ cb (11) -
session
_ remove _ cb= (11) -
set
_ current _ section (11) -
set
_ last _ value (11) -
set
_ params (11) -
set
_ visibility _ for (11) -
ssl
_ context (11) -
ssl
_ timeout (11) -
ssl
_ timeout= (11) -
ssl
_ version= (11) -
strip
_ newlines (11) -
sub
_ type (11) - target (11)
- text= (11)
- text? (11)
- textInput (11)
- textInput= (11)
-
text
_ field (22) - textarea (22)
- textinput (11)
- textinput= (11)
- texts (11)
- time= (11)
- timeout (11)
- timeout= (11)
- title (44)
- title= (33)
-
tmp
_ dh _ callback (11) -
tmp
_ dh _ callback= (11) -
to
_ mailtext (11) -
to
_ proc (5) -
to
_ rfc822text (11) -
to
_ s (22) -
to
_ text (110) - toplevel (11)
- trust= (11)
-
unicode
_ normalize! (10) -
unmatched
_ alias _ lists (11) -
unmatched
_ alias _ lists= (11) -
use
_ loader (11) -
use
_ loader= (11) -
use
_ loader? (11) -
use
_ readline (11) -
use
_ readline? (11) -
use
_ tracer (11) -
use
_ tracer= (11) -
use
_ tracer? (11) - value (22)
- value= (11)
- verbose (11)
- verbose= (11)
- verbose? (11)
- verify (22)
-
verify
_ callback (11) -
verify
_ callback= (11) -
verify
_ depth (11) -
verify
_ depth= (11) -
verify
_ mode (11) -
verify
_ mode= (11) - visibility (11)
- workspace= (11)
検索結果
先頭5件
-
Net
:: IMAP :: BodyTypeMessage # body -> Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMultipart (201.0) -
ボディを返します。
ボディを返します。 -
Net
:: HTTPHeader # main _ type -> String|nil (139.0) -
"text/html" における "text" のようなタイプを表す 文字列を返します。
..."text/html" における "text" のようなタイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_r......esponse(uri)
res.main_type # => "text"
//}... -
Net
:: HTTPHeader # content _ type -> String|nil (117.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 # sub _ type -> String|nil (117.0) -
"text/html" における "html" のようなサブタイプを表す 文字列を返します。
..."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"
//}... -
Method
# <<(callable) -> Proc (113.0) -
self と引数を合成した Proc を返します。
...self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を callable に渡して呼び出し、
その戻り値を self に渡して呼び出した結果を返します......なります。
@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
def f(x)
x * x
end
def g(x)
x + x
end
# (3 + 3) * (3 + 3)
p (method(:f) << method(:g)).call(3) # => 36
//}
//emlist[call を定義したオブジェ......を渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = method(:pp) << WordScanner << File.method(:read)
pipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}
@see Pro... -
Method
# >>(callable) -> Proc (113.0) -
self と引数を合成した Proc を返します。
...self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を self に渡して呼び出し、
その戻り値を callable に渡して呼び出した結果を返します......なります。
@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
def f(x)
x * x
end
def g(x)
x + x
end
# (3 * 3) + (3 * 3)
p (method(:f) >> method(:g)).call(3) # => 18
//}
//emlist[call を定義したオブジェ......を渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = File.method(:read) >> WordScanner >> method(:pp)
pipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}
@see Pro... -
OpenURI
:: Meta # charset -> String | nil (113.0) -
対象となるリソースの文字コードを文字列で返します。Content-Type ヘッダの文字コード情報が使われます。 文字列は小文字へと変換されています。
...。
Content-Type ヘッダがない場合は、nil を返します。ただし、ブロックが与えられている場合は、
その結果を返します。また対象となる URI のスキームが HTTP であり、自身のタイプが text である場合は、
2616 3.7.1 で定められ......ているとおり、文字列 "iso-8859-1" を返します。
//emlist[例][ruby]{
require 'open-uri'
open("http://www.ruby-lang.org/en") {|f|
p f.content_type # => "text/html"
p f.charset # => "iso-8859-1"
}
//}......ているとおり、文字列 "iso-8859-1" を返します。
//emlist[例][ruby]{
require 'open-uri'
URI.open("http://www.ruby-lang.org/en") {|f|
p f.content_type # => "text/html"
p f.charset # => "iso-8859-1"
}
//}... -
Proc
# <<(callable) -> Proc (113.0) -
self と引数を合成した Proc を返します。
...self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を callable に渡して呼び出し、
その戻り値を self に渡して呼び出した結果を返します......aram callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 + 3) * (3 + 3)
p (f << g).call(3) # => 36
//}
//emlist[call を定義したオブジェクトを渡す例][ruby]{
class Wo......rdScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = proc { |data| puts "word count: #{data.size}" } << WordScanner << File.method(:read)
pipeline.call('testfile') # => word count: 4
//}
@see Method#<<, Method#... -
Proc
# >>(callable) -> Proc (113.0) -
self と引数を合成した Proc を返します。
...self と引数を合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を self に渡して呼び出し、
その戻り値を callable に渡して呼び出した結果を返します......aram callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 * 3) + (3 * 3)
p (f >> g).call(3) # => 18
//}
//emlist[call を定義したオブジェクトを渡す例][ruby]{
class Wo......rdScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = proc { |fname| File.read(fname) } >> WordScanner >> method(:p)
pipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}
@see Method#<<, Method#... -
ObjectSpace
:: WeakMap # []=(key , value) (107.0) -
引数 key から引数 value への参照を作成します。
...引数 key から引数 value への参照を作成します。
@param key 参照元のオブジェクトを指定します。
@param value 参照先のオブジェクトを指定します。
//emlist[例][ruby]{
weak_map = ObjectSpace::WeakMap.new
key = "text"
weak_map[key] = "test" # => test
w... -
PrettyPrint
# first? -> bool (107.0) -
このメソッドは obsolete です。
...は obsolete です。
現在のグループで first? に対する最初の呼び出しかどうかを判定する
述語です。これはカンマで区切られた値を整形するのに有用です。
pp.group(1, '[', ']') {
xxx.each {|yyy|
unless pp.first?
pp.text ','......pp.breakable
end
... pretty printing yyy ...
}
}... -
WEBrick
:: HTTPResponse # content _ type=(val) (107.0) -
Content-Type ヘッダの値をセットします。
...Content-Type ヘッダの値をセットします。
@param val Content-Type ヘッダの値を文字列で指定します。
res.content_type = "text/html"
@see WEBrick::HTTPUtils.#mime_type...