1577件ヒット
[1501-1577件を表示]
(0.103秒)
別のキーワード
ライブラリ
- ビルトイン (341)
-
cgi
/ html (48) - csv (48)
-
fiddle
/ import (24) - json (24)
-
net
/ ftp (48) -
net
/ http (60) -
net
/ imap (132) -
net
/ smtp (12) - openssl (240)
- optparse (12)
- resolv (12)
-
rexml
/ document (36) -
rexml
/ sax2listener (12) -
rubygems
/ package / tar _ input (24) -
rubygems
/ package / tar _ output (36) -
rubygems
/ package / tar _ writer (24) -
rubygems
/ security (48) -
rubygems
/ source _ info _ cache (84) -
rubygems
/ validator (24) - socket (204)
-
webrick
/ httputils (48) -
win32
/ registry (24) - zlib (12)
クラス
- BasicObject (12)
- BasicSocket (36)
- CSV (48)
- Data (12)
-
Gem
:: Package :: TarInput (24) -
Gem
:: Package :: TarOutput (36) -
Gem
:: Package :: TarWriter :: BoundedStream (12) -
Gem
:: Package :: TarWriter :: RestrictedStream (12) -
Gem
:: Security :: Policy (36) -
Gem
:: Security :: Signer (12) -
Gem
:: SourceInfoCache (84) -
Gem
:: Validator (24) - IO (12)
-
JSON
:: Parser (12) -
JSON
:: State (12) - MatchData (264)
-
Net
:: FTP (48) -
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (24) -
Net
:: IMAP (24) -
Net
:: IMAP :: ContinuationRequest (12) -
Net
:: IMAP :: FetchData (24) -
Net
:: IMAP :: StatusData (24) -
Net
:: IMAP :: TaggedResponse (24) -
Net
:: IMAP :: UntaggedResponse (24) -
Net
:: SMTP (12) -
OpenSSL
:: ASN1 :: ASN1Data (60) -
OpenSSL
:: ASN1 :: Constructive (12) -
OpenSSL
:: ASN1 :: Primitive (12) -
OpenSSL
:: Cipher (12) -
OpenSSL
:: Digest (24) -
OpenSSL
:: Engine (24) -
OpenSSL
:: PKCS7 (24) -
OpenSSL
:: PKey :: DSA (24) -
OpenSSL
:: PKey :: EC (24) -
OpenSSL
:: PKey :: PKey (24) - OptionParser (12)
- Proc (7)
-
REXML
:: CData (24) -
REXML
:: Entity (12) - Regexp (12)
-
Resolv
:: DNS :: Resource :: TXT (12) -
RubyVM
:: InstructionSequence (10) -
Socket
:: AncillaryData (120) -
Socket
:: Option (48) - String (12)
-
WEBrick
:: HTTPUtils :: FormData (48) -
Win32
:: Registry (24) -
Zlib
:: ZStream (12)
モジュール
-
CGI
:: HtmlExtension (48) -
Fiddle
:: Importer (24) -
Net
:: HTTPHeader (12) -
REXML
:: SAX2Listener (12)
キーワード
- << (19)
- [] (60)
-
add
_ gem _ contents (12) -
add
_ signatures (12) - alien (12)
- attr (24)
- begin (12)
- bind (12)
- body (12)
- body= (12)
- bytebegin (2)
- byteend (2)
- byteoffset (6)
-
cache
_ data (12) - captures (12)
-
cmsg
_ is? (12) -
content
_ type (12) -
data
_ type (12) - deconstruct (2)
- depth (12)
-
dsa
_ sign _ asn1 (12) -
dsa
_ verify _ asn1 (12) - each (12)
- end (12)
- environment (12)
- family (12)
-
field
_ size _ limit (12) - filename (12)
- get (24)
- getbinaryfile (24)
- gets (12)
- hash (15)
- inspect (15)
- int (24)
-
ip
_ pktinfo (12) -
ipv6
_ pktinfo (12) -
ipv6
_ pktinfo _ ifindex (12) -
latest
_ cache _ data (12) - length (12)
- level (12)
- linger (12)
-
load
_ private _ key (12) -
load
_ public _ key (12) - mailbox (12)
- match (24)
-
method
_ missing (12) -
multipart
_ form (48) - name (12)
- names (12)
- ndata (12)
- offset (24)
- patch (12)
- post (12)
-
post
_ match (12) -
pre
_ match (12) -
processing
_ instruction (12) -
raw
_ data (36) - read (12)
-
read
_ all _ cache _ data (12) -
read
_ cache _ data (12) - readline (12)
- recvmsg (12)
-
recvmsg
_ nonblock (12) - regexp (12)
-
reset
_ cache _ data (12) -
reset
_ cache _ for (12) - sendmsg (12)
- seqno (12)
-
set
_ cache _ data (12) - shift (12)
- sign (24)
- size (12)
- source (12)
- store (12)
- string (12)
- sysseek (12)
- syssign (12)
- sysverify (12)
- tag (12)
- tag= (12)
-
tag
_ class (12) -
tag
_ class= (12) - tagging (24)
-
to
_ a (12) -
to
_ binary (10) -
to
_ der (12) -
to
_ s (51) - type (12)
-
uid
_ store (12) - union (12)
-
unix
_ rights (12) - update (24)
- value (12)
-
values
_ at (12) - verify (24)
-
verify
_ data (12) -
verify
_ data= (12) -
verify
_ gem (24) - with (3)
- write (36)
検索結果
先頭5件
-
Fiddle
:: Importer # union(signature) -> Class (113.0) -
C の共用体型に対応する Ruby のクラスを構築して返します。
...epoll_data
{
void *ptr;
int fd;
uint32_t u32;
uint64_t u64;
} epoll_data_t;
は、Ruby上では
require 'fiddle/import'
module M
extend Fiddle::Importer
dlload "libc.so.6"
typealias("uint32_t", "unsigned int")
typealias("uint64_t", "unsigned long long")......EPollData = union(["void *ptr",
"int fd",
"uint32_t u32",
"uint64_t u64",
])
end
となります。
返されるクラスは Fiddle::CUnion を継承しています。
1.9.x ではこのメソッドで......返されるクラスは正しく動作しません。
2.0以降では修正されています。
@param signature 共用体の各要素を文字列で表現したものの配列... -
IO
# sysseek(offset , whence = IO :: SEEK _ SET) -> Integer (113.0) -
lseek(2) と同じです。IO#seek では、 IO#sysread, IO#syswrite と併用すると正しく動作しないので代わりにこのメソッドを使います。 位置 offset への移動が成功すれば移動した位置(ファイル先頭からのオフセット)を返します。
...k(0)
}
# => -:3: warning: sysseek for buffered IO
@param offset ファイルポインタを移動させるオフセットを整数で指定します。
@param whence 値は以下のいずれかです。
それぞれ代わりに :SET、:CUR、:END、:DATA、:HOLE を指定す......先頭から (デフォルト)
* IO::SEEK_CUR: 現在のファイルポインタから
* IO::SEEK_END: ファイルの末尾から
* IO::SEEK_DATA: offset 以降の次にデータがある位置へ(lseek の man ページ参照。Linux 3.1 以降のみ)
* IO::SEEK_HOLE: offset 以降の次... -
Net
:: HTTPHeader # content _ type -> String|nil (113.0) -
"text/html" のような 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"
//}... -
OptionParser
# environment(env) -> [String] (113.0) -
環境変数 env に対して Shellwords.#shellwords を呼 んで配列にしてから parse を行ないます。
...se"
config = {}
opts = OptionParser.new
opts.on("-r", "--require LIBRARY"){|lib| config[:lib] = lib }
# HOGE_OPT は hoge というプログラム名に対応した名前です
ENV['HOGE_OPT'] = %q{--require lib1 'remain data'}
p opts.environment('HOGE_OPT') # => ["remain data"]
p config... -
Socket
:: Option # int -> Integer (113.0) -
オプションのデータ(内容)を整数に変換して返します。
...オプションのデータ(内容)を整数に変換して返します。
@raise TypeError dataのバイト数が不適切である(sizeof(int)と異なる)場合に発生します
@see Socket::Option#data... -
JSON
:: Parser # source -> String (107.0) -
現在のソースのコピーを返します。
...w(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
# => }
__END__
{
"Tanaka": {
"name":"tanaka",
"age":20
},
"Suzuki": {
"name":"suzuki",
"age... -
Proc
# <<(callable) -> Proc (25.0) -
self と引数を合成した Proc を返します。
...hod、もしくは任意の 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 WordScanner
def self.cal......l(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#>>...