3150件ヒット
[1-100件を表示]
(0.122秒)
ライブラリ
- ビルトイン (883)
- csv (24)
- digest (24)
- fiddle (144)
-
fiddle
/ import (12) - ipaddr (36)
-
irb
/ context (48) - matrix (24)
- openssl (396)
- optparse (48)
- ostruct (38)
- pathname (839)
-
racc
/ parser (12) - rake (36)
- resolv (24)
- rexml (12)
-
rexml
/ document (108) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (12) -
rubygems
/ requirement (12) -
rubygems
/ version (24) - scanf (6)
- set (28)
- socket (48)
- uri (72)
-
webrick
/ httprequest (12) -
webrick
/ httpresponse (84) -
webrick
/ httputils (12) -
webrick
/ httpversion (12) - win32ole (84)
- zlib (24)
クラス
-
ARGF
. class (24) - Addrinfo (24)
- Array (84)
- BasicObject (12)
- Bignum (6)
-
CSV
:: Table (24) - Complex (12)
- Data (6)
-
Digest
:: Base (24) -
Enumerator
:: Lazy (22) - Exception (24)
- FalseClass (24)
-
Fiddle
:: Pointer (144) - Fixnum (6)
- Float (46)
-
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (12) -
Gem
:: Requirement (12) -
Gem
:: Version (24) - Hash (24)
- IPAddr (36)
-
IRB
:: Context (48) - Integer (24)
- MatchData (12)
- Matrix (12)
- Method (24)
- Module (36)
- NameError (12)
- Object (12)
-
OpenSSL
:: BN (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: HMAC (36) -
OpenSSL
:: Netscape :: SPKI (24) -
OpenSSL
:: PKCS7 (24) -
OpenSSL
:: PKey :: DH (36) -
OpenSSL
:: PKey :: DSA (72) -
OpenSSL
:: PKey :: RSA (72) -
OpenSSL
:: X509 :: CRL (24) -
OpenSSL
:: X509 :: Certificate (24) -
OpenSSL
:: X509 :: Extension (12) -
OpenSSL
:: X509 :: Name (12) -
OpenSSL
:: X509 :: Request (24) - OpenStruct (38)
- OptionParser (24)
-
OptionParser
:: ParseError (24) - Pathname (839)
- Proc (24)
-
Process
:: Status (12) -
REXML
:: Attribute (12) -
REXML
:: Child (24) -
REXML
:: DocType (12) -
REXML
:: Element (36) -
REXML
:: Elements (12) -
REXML
:: Entity (12) -
REXML
:: ParseException (12) -
Racc
:: Parser (12) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: TaskArguments (24) - Range (12)
- Rational (12)
- Regexp (24)
-
Resolv
:: IPv4 (12) -
Resolv
:: IPv6 (12) -
Scanf
:: FormatSpecifier (6) - Set (16)
-
Socket
:: Option (24) - String (108)
- Struct (24)
- Symbol (140)
- Thread (40)
-
Thread
:: Backtrace :: Location (12) - Time (18)
-
URI
:: Generic (72) - UnboundMethod (24)
- UncaughtThrowError (11)
- Vector (12)
-
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (84) -
WEBrick
:: HTTPUtils :: FormData (12) -
WEBrick
:: HTTPVersion (12) -
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (36) -
WIN32OLE
_ TYPELIB (24) -
Zlib
:: GzipWriter (24)
モジュール
- Enumerable (24)
-
Fiddle
:: Importer (12) -
OpenSSL
:: Buffering (12)
キーワード
- % (12)
- +@ (12)
- -@ (12)
- << (12)
- =~ (12)
- [] (36)
- []= (36)
-
add
_ namespace (24) -
add
_ trace _ func (12) - atime (12)
- basename (12)
- bind (12)
- binread (12)
- binwrite (12)
- birthtime (11)
- blockdev? (12)
- body= (12)
- capitalize (12)
- chardev? (12)
- chmod (12)
- chown (12)
- chunked= (12)
-
content
_ length (12) -
content
_ length= (12) - ctime (12)
- data (12)
-
delete
_ all (12) -
delete
_ namespace (12) - directory? (12)
- dirname (12)
- downcase (9)
-
each
_ entry (15) -
each
_ line (24) - empty? (9)
- entities (12)
- executable? (12)
-
executable
_ real? (12) - exist? (12)
- export (60)
- extname (12)
- file? (12)
- find (24)
- fnmatch (12)
- fnmatch? (12)
- ftype (12)
- grep (12)
-
grep
_ v (10) - grpowned? (12)
- help (12)
- hex (12)
- hexdigest (24)
- hostname= (12)
-
http
_ version (12) - id2name (12)
- inspect (271)
- inspect? (12)
-
inspect
_ mode= (12) - intern (12)
- join (12)
- lchmod (12)
- lchown (12)
- lstat (12)
-
make
_ link (12) -
make
_ symlink (12) - match (12)
- merge! (12)
-
method
_ missing (12) - mkdir (12)
- mkpath (12)
- mtime (12)
- name (53)
-
next
_ float (11) -
next
_ sibling= (12) - normalize (12)
- normalize! (12)
- oct (12)
- open (24)
- opendir (24)
- owned? (12)
- pipe? (12)
-
prev
_ float (11) -
previous
_ sibling= (12) - print (12)
- ptr (12)
- read (12)
- readable? (12)
-
readable
_ real? (12) - readlines (12)
- readlink (12)
- ref (12)
- rename (12)
- rmdir (12)
- rmtree (12)
-
set
_ trace _ func (12) - setgid? (12)
- setuid? (12)
- size (12)
- size? (12)
- slice (12)
- socket? (12)
- split (12)
-
start
_ with? (6) - stat (12)
- sticky? (12)
- succ (12)
- swapcase (12)
- symlink? (12)
- sysopen (12)
-
to
_ csv (12) -
to
_ f (12) -
to
_ h (14) -
to
_ i (12) -
to
_ path (12) -
to
_ pem (120) -
to
_ proc (12) -
to
_ set (24) -
to
_ sockaddr (12) -
to
_ str (48) -
to
_ string (24) -
to
_ sym (12) -
token
_ to _ str (12) - truncate (12)
- uniq (24)
- uniq! (24)
- upcase (12)
- userinfo= (12)
- utime (12)
- version (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (24)
- zero? (12)
検索結果
先頭5件
-
OpenSSL
:: Netscape :: SPKI # to _ s -> String (24102.0) -
SPKI オブジェクトを PEM 形式の文字列に変換します。
...SPKI オブジェクトを PEM 形式の文字列に変換します。
@raise OpenSSL::Netscape::SPKIError 変換に失敗した場合に発生します... -
OpenSSL
:: BN # to _ s(base=10) -> String (21270.0) -
自身を表す文字列を返します。
...MPI形式の文字列(バイト列)
@param base 文字列への変換方法(基数)
@raise OpenSSL::BNError 変換に失敗した場合に発生します
//emlist[][ruby]{
require 'openssl'
p 10.to_bn.to_s # => "10"
p (-5).to_bn.to_s # => "-5"
p 0.to_bn.to_s(16) # => "0"
p 9.to_bn.to_s(1......6) # => "09"
p 10.to_bn.to_s(16) # => "0A"
p 16.to_bn.to_s(16) # => "10"
p 26.to_bn.to_s(16) # => "1A"
p 256.to_bn.to_s(16) # => "0100"
p 0.to_bn.to_s(2) # => ""
p 6.to_bn.to_s(2) # => "\x06"
p 7.to_bn.to_s(2) # => "\a"
p 0.to_bn.to_s(0) # => "\x00\x00\x00\x00"
p 6.to_bn.to_s(0) # => "\x00\x0......0\x00\x01\x06"
p 7.to_bn.to_s(0) # => "\x00\x00\x00\x01\a"
//}
反対に、文字列から OpenSSL::BN クラスのインスタンスを作るには
OpenSSL::BN.new を用います。
@see OpenSSL::BN.new... -
Regexp
# to _ s -> String (21144.0) -
正規表現の文字列表現を生成して返します。返される文字列は他の正規表 現に埋め込んでもその意味が保持されるようになっています。
...表
現に埋め込んでもその意味が保持されるようになっています。
//emlist[][ruby]{
re = /foo|bar|baz/i
p re.to_s # => "(?i-mx:foo|bar|baz)"
p /#{re}+/o # => /(?i-mx:foo|bar|baz)+/
//}
ただし、後方参照を含む正規表現は意図通りにはならない......emlist[][ruby]{
re = /(foo|bar)\1/ # \1 は、foo か bar
p /(baz)#{re}/ # \1 は、baz
# => /(baz)(?-mix:(foo|bar)\1)/
//}
//emlist[使用例][ruby]{
re = /foo|bar|baz/i
p re.to_s # => "(?i-mx:foo|bar|baz)"
p /#{re}+/o # => /(?i-mx:foo|bar|baz)+/
//}
@see Regexp#inspect... -
Complex
# to _ s -> String (21132.0) -
自身を "実部 + 虚部i" 形式の文字列にして返します。
...。
//emlist[例][ruby]{
Complex(2).to_s # => "2+0i"
Complex('-8/6').to_s # => "-4/3+0i"
Complex('1/2i').to_s # => "0+1/2i"
Complex(0, Float::INFINITY).to_s # => "0+Infinity*i"
Complex(Float::NAN, Float::NAN).to_s # => "NaN+NaN*i"
//}... -
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (21132.0) -
DNの文字列表現を返します。
...* OpenSSL::X509::Name::COMPAT
* OpenSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE
*
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')......n.to_s
# => "/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::COMPAT)
# => "C=JP, ST=Kanagawa, L=Yokohama, O=Example Company, OU=Lab3, CN=foobar/emailAddress=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509......dress=foobar@lab3.example.co.jp,CN=foobar,OU=Lab3,O=Example Company,L=Yokohama,ST=Kanagawa,C=JP"
n.to_s(OpenSSL::X509::Name::ONELINE)
# => "C = JP, ST = Kanagawa, L = Yokohama, O = Example Company, OU = Lab3, CN = foobar, emailAddress = foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::MU... -
Process
:: Status # to _ s -> String (21118.0) -
to_i.to_s と同じです。
...to_i.to_s と同じです。... -
WEBrick
:: HTTPVersion # to _ s -> String (21114.0) -
自身を文字列に変換して返します。
...自身を文字列に変換して返します。
require 'webrick'
v = WEBrick::HTTPVersion.new('1.1')
p v.to_s #=> "1.1"... -
IPAddr
# to _ s -> String (21108.0) -
文字列に変換します。
...文字列に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_string... -
WEBrick
:: HTTPResponse # to _ s -> String (21108.0) -
実際にクライアントに送られるデータを文字列として返します。
...字列として返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 08:58:49 GMT
Server:
Content-Length: 4
hog...