1737件ヒット
[1-100件を表示]
(0.168秒)
別のキーワード
ライブラリ
- ビルトイン (434)
- bigdecimal (55)
-
bigdecimal
/ util (11) - csv (22)
- fiddle (66)
-
fiddle
/ import (11) - json (11)
- openssl (363)
- optparse (22)
- pathname (164)
- rake (22)
- resolv (33)
- rexml (11)
-
rexml
/ document (176) -
rubygems
/ platform (11) - set (22)
-
shell
/ filter (6) - stringio (11)
- uri (33)
-
webrick
/ httpresponse (33) -
webrick
/ httputils (11) -
webrick
/ log (66) - win32ole (121)
- zlib (22)
クラス
-
ARGF
. class (33) - BigDecimal (66)
-
CSV
:: Table (22) - Complex (11)
-
Enumerator
:: Lazy (20) - FalseClass (22)
-
Fiddle
:: Pointer (66) - Float (22)
-
Gem
:: Platform (11) - Module (33)
- NilClass (11)
- Object (22)
-
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) - OptionParser (22)
- Pathname (164)
-
REXML
:: Attribute (22) -
REXML
:: CData (22) -
REXML
:: Child (22) -
REXML
:: Comment (22) -
REXML
:: Declaration (11) -
REXML
:: DocType (11) -
REXML
:: Entity (11) -
REXML
:: ExternalEntity (11) -
REXML
:: NotationDecl (11) -
REXML
:: ParseException (11) -
REXML
:: Text (22) -
Rake
:: EarlyTime (11) -
Rake
:: FileList (11) - Rational (22)
-
Resolv
:: DNS :: Name (11) -
Resolv
:: IPv4 (11) -
Resolv
:: IPv6 (11) -
Shell
:: Filter (6) - String (33)
- StringIO (11)
- Symbol (172)
-
Thread
:: Backtrace :: Location (22) - TrueClass (11)
-
URI
:: Generic (33) -
WEBrick
:: BasicLog (66) -
WEBrick
:: HTTPResponse (33) -
WEBrick
:: HTTPUtils :: FormData (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)
- << (33)
- =~ (11)
- [] (77)
- bind (11)
- binread (11)
- binwrite (11)
- chunked= (11)
-
content
_ length (11) -
content
_ length= (11) - debug (11)
-
define
_ singleton _ method (22) -
each
_ line (22) - entities (11)
- error (11)
- export (55)
- fatal (11)
- find (10)
- fnmatch (11)
- fnmatch? (11)
- grep (11)
-
grep
_ v (9) - grpowned? (11)
- help (11)
- hexdigest (11)
- id2name (11)
- info (11)
- inspect (88)
- intern (11)
- lchmod (11)
- lchown (11)
- length (11)
- match (3)
- merge! (11)
- modulo (11)
- name (70)
-
next
_ sibling= (11) - normalize (11)
- normalize! (11)
-
previous
_ sibling= (11) - print (11)
- read (11)
- readlines (11)
- remainder (11)
- setgid? (11)
- size (11)
- slice (55)
- string (11)
-
to
_ csv (11) -
to
_ digits (11) -
to
_ f (11) -
to
_ json (11) -
to
_ pem (110) -
to
_ set (22) -
to
_ str (22) -
to
_ string (11) -
to
_ sym (11) - truncate (11)
- value (22)
- warn (11)
- write (33)
検索結果
先頭5件
-
BigDecimal
# to _ s -> String (24263.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 (24263.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"
//}
さらに文字列の最後に指... -
Gem
:: Platform # to _ s -> String (24202.0) -
自身にセットされている CPU, OS, バージョンを文字列として返します。
自身にセットされている CPU, OS, バージョンを文字列として返します。 -
OpenSSL
:: Config # to _ s -> String (24202.0) -
オブジェクトに含まれる設定情報を OpenSSL の設定ファイルの形式で 出力します。
...オブジェクトに含まれる設定情報を OpenSSL の設定ファイルの形式で
出力します。... -
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (21362.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 (21303.0) -
自身が指す領域から長さ len の文字列を複製して返します。
...自身が指す領域から長さ len の文字列を複製して返します。
len を省略した場合は、文字列の終りは '\0' であると仮定して、
strlen(3) を使って長さを算出します。
@param len 文字列の長さを整数で指定します。... -
OpenSSL
:: BN # to _ s(base=10) -> String (21286.0) -
自身を表す文字列を返します。
...big-endianの符号無し整数のバイナリ列
0 MPI形式の文字列(バイト列)
@param base 文字列への変換方法(基数)
@raise OpenSSL::BNError 変換に失敗した場合に発生します
//emlist[][ruby]{
require 'openssl'
p 10.to_bn.to_s # => "10"
p (-5).to_bn.to_s #......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) # => "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\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... -
Complex
# to _ s -> String (21232.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 (21226.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 (21214.0) -
実行結果を文字列で返します。
...実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}...