2629件ヒット
[1-100件を表示]
(0.185秒)
ライブラリ
- ビルトイン (672)
- bigdecimal (55)
-
bigdecimal
/ util (11) - csv (22)
- fiddle (132)
-
fiddle
/ import (11) -
irb
/ context (11) - json (11)
- openssl (363)
- optparse (22)
- ostruct (12)
- pathname (547)
- rake (22)
- resolv (33)
- rexml (11)
-
rexml
/ document (319) -
rubygems
/ platform (11) - set (22)
-
shell
/ filter (12) - stringio (11)
- uri (33)
-
webrick
/ httpresponse (55) -
webrick
/ httputils (11) -
webrick
/ log (66) - win32ole (132)
- zlib (22)
クラス
-
ARGF
. class (33) - Array (22)
- BigDecimal (66)
-
CSV
:: Table (22) - Complex (11)
-
Enumerator
:: Lazy (20) - FalseClass (22)
-
Fiddle
:: Pointer (132) - Float (42)
-
Gem
:: Platform (11) - Hash (43)
- IO (11)
-
IRB
:: Context (11) - Module (33)
- NilClass (11)
- Object (36)
-
OpenSSL
:: BN (11) -
OpenSSL
:: Config (11) -
OpenSSL
:: HMAC (33) -
OpenSSL
:: Netscape :: SPKI (22) -
OpenSSL
:: PKCS7 (22) -
OpenSSL
:: PKey :: DH (33) -
OpenSSL
:: PKey :: DSA (66) -
OpenSSL
:: PKey :: RSA (66) -
OpenSSL
:: X509 :: CRL (22) -
OpenSSL
:: X509 :: Certificate (22) -
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: Name (11) -
OpenSSL
:: X509 :: Request (22) - OpenStruct (12)
- OptionParser (22)
- Pathname (547)
-
REXML
:: Attribute (22) -
REXML
:: CData (22) -
REXML
:: Child (22) -
REXML
:: Comment (22) -
REXML
:: Declaration (11) -
REXML
:: DocType (11) -
REXML
:: Element (66) -
REXML
:: Elements (55) -
REXML
:: Entity (22) -
REXML
:: ExternalEntity (11) -
REXML
:: NotationDecl (11) -
REXML
:: ParseException (11) -
REXML
:: Text (33) -
Rake
:: EarlyTime (11) -
Rake
:: FileList (11) - Rational (22)
-
Resolv
:: DNS :: Name (11) -
Resolv
:: IPv4 (11) -
Resolv
:: IPv6 (11) -
Shell
:: Filter (12) - String (33)
- StringIO (11)
- Symbol (278)
- Thread (11)
-
Thread
:: Backtrace :: Location (22) - TrueClass (11)
-
URI
:: Generic (33) - UnboundMethod (11)
-
WEBrick
:: BasicLog (66) -
WEBrick
:: HTTPResponse (55) -
WEBrick
:: HTTPUtils :: FormData (11) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (22) -
WIN32OLE
_ PARAM (22) -
WIN32OLE
_ TYPE (33) -
WIN32OLE
_ TYPELIB (22) -
WIN32OLE
_ VARIABLE (22) -
Zlib
:: GzipWriter (22)
モジュール
- Enumerable (22)
-
Fiddle
:: Importer (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
OpenSSL
:: Buffering (11) -
REXML
:: Node (11)
キーワード
- % (11)
- +@ (11)
- -@ (11)
- << (55)
- =~ (11)
- [] (77)
- []= (44)
- add (11)
-
add
_ element (11) -
add
_ namespace (22) - bind (11)
- binread (11)
- binwrite (11)
- blockdev? (11)
- body= (11)
- capitalize (11)
- chardev? (11)
- chunked= (11)
-
content
_ length (11) -
content
_ length= (11) - debug (11)
-
define
_ singleton _ method (22) - delete (11)
-
delete
_ all (11) -
delete
_ element (11) -
delete
_ namespace (11) - directory? (11)
- downcase (11)
-
each
_ entry (11) -
each
_ line (22) - empty? (8)
-
end
_ with? (5) - entities (11)
- error (11)
- executable? (11)
-
executable
_ real? (11) - exist? (11)
- export (55)
- fatal (11)
- file? (11)
- find (11)
- fnmatch (11)
- fnmatch? (11)
- grep (11)
-
grep
_ v (9) - grpowned? (11)
- handler= (11)
- help (11)
- hexdigest (11)
- id2name (11)
- info (11)
- inspect (88)
- inspect? (11)
- intern (11)
- lchmod (11)
- lchown (11)
- length (11)
- lstat (11)
-
make
_ link (11) -
make
_ symlink (11) - match (11)
- merge! (11)
- mkpath (11)
- modulo (11)
- name (70)
- next (11)
-
next
_ float (10) -
next
_ sibling= (11) - normalize (11)
- normalize! (11)
- open (22)
- opendir (11)
- owned? (11)
- owner (11)
- pipe? (11)
-
prev
_ float (10) -
previous
_ sibling= (11) - print (11)
- ptr (11)
- read (11)
- readable? (11)
-
readable
_ real? (11) - readlines (11)
- readlink (11)
- ref (11)
- remainder (11)
- rmtree (11)
-
set
_ trace _ func (11) - setgid? (11)
- setuid? (11)
- size (11)
- size? (11)
- slice (55)
- socket? (11)
- split (11)
-
start
_ with? (5) - stat (11)
- sticky? (11)
- string (11)
- succ (11)
- swapcase (11)
- symlink? (11)
- text= (11)
-
to
_ csv (11) -
to
_ digits (11) -
to
_ f (11) -
to
_ h (12) -
to
_ json (11) -
to
_ pem (110) -
to
_ proc (11) -
to
_ set (22) -
to
_ str (22) -
to
_ string (11) -
to
_ sym (22) -
transform
_ keys! (11) -
transform
_ values (16) -
transform
_ values! (16) - truncate (11)
- uniq! (22)
- upcase (11)
- value (22)
- value= (11)
- warn (11)
-
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (44)
-
yield
_ self (14) - zero? (11)
- | (6)
検索結果
先頭5件
-
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (21262.0) -
DNの文字列表現を返します。
...lags には通常は以下のいずれかを渡します。
* nil
* 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=Exampl......=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/email......s=foobar@lab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::RFC2253)
# => "emailAddress=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 =... -
Fiddle
:: Pointer # to _ s(len) -> String (21203.0) -
自身が指す領域から長さ len の文字列を複製して返します。
...自身が指す領域から長さ len の文字列を複製して返します。
len を省略した場合は、文字列の終りは '\0' であると仮定して、
strlen(3) を使って長さを算出します。
@param len 文字列の長さを整数で指定します。... -
OpenSSL
:: BN # to _ s(base=10) -> String (21186.0) -
自身を表す文字列を返します。
...enSSL::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(16) # => "09"
p 10.to_bn.to_s(16) # => "0A"
p 16.to_bn.to_s(16) # => "10"
p 26.to_bn.to_s(16......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\x00\x00\x01\x06"
p 7.to_bn.to_s(0) # => "\x00\x00\x00\x01\a"
//}
反対に、文字列から OpenSSL::BN ク......ラスのインスタンスを作るには
OpenSSL::BN.new を用います。
@see OpenSSL::BN.new... -
BigDecimal
# to _ s -> String (21163.0) -
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
...self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
@param n 出力の形式を Integer または String で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").to_s # ==> "0.123456e1"
//}
引数 n に正の整数が指定さ......。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s(10) # => "0.1234567890 123456789e0"
//}
引数 n に正の整数を表す文字列を指定することもできます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s("10") # =......付きます。負の場合は常に '-' が付きます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.123456").to_s(" 3") # => " 0.123 456e0"
BigDecimal("0.123456").to_s("+3") # => "+0.123 456e0"
BigDecimal("-0.123456").to_s("3") # => "-0.123 456e0"
//}
さらに文字列の最後に指... -
BigDecimal
# to _ s(n) -> String (21163.0) -
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
...self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
@param n 出力の形式を Integer または String で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").to_s # ==> "0.123456e1"
//}
引数 n に正の整数が指定さ......。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s(10) # => "0.1234567890 123456789e0"
//}
引数 n に正の整数を表す文字列を指定することもできます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s("10") # =......付きます。負の場合は常に '-' が付きます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.123456").to_s(" 3") # => " 0.123 456e0"
BigDecimal("0.123456").to_s("+3") # => "+0.123 456e0"
BigDecimal("-0.123456").to_s("3") # => "-0.123 456e0"
//}
さらに文字列の最後に指... -
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"... -
Rational
# to _ s -> String (21126.0) -
自身を人間が読みやすい形の文字列表現にして返します。
..."-17/7" のように10進数の表記を返します。
@return 有理数の表記にした文字列を返します。
//emlist[例][ruby]{
Rational(3, 4).to_s # => "3/4"
Rational(8).to_s # => "8/1"
Rational(-8, 6).to_s # => "-4/3"
Rational(0.5).to_s # => "1/2"
//}
@see Rational#inspect... -
Shell
:: Filter # to _ s -> String (21114.0) -
実行結果を文字列で返します。
...実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}... -
NilClass
# to _ s -> String (21108.0) -
空文字列 "" を返します。
...空文字列 "" を返します。
//emlist[例][ruby]{
nil.to_s # => ""
//}... -
REXML
:: CData # to _ s -> String (21108.0) -
テキスト文字列を返します。
...テキスト文字列を返します。
@see REXML::Text#value, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root><![CDATA[foobar baz]]></root>
EOS
doc.root[0].class # => REXML::CData
doc.root[0].value # => "foobar baz"
//}...