2980件ヒット
[1-100件を表示]
(0.074秒)
ライブラリ
- ビルトイン (930)
- bigdecimal (55)
-
bigdecimal
/ util (11) - date (22)
- digest (22)
- erb (11)
- fiddle (132)
-
fiddle
/ import (11) - ipaddr (22)
-
irb
/ context (22) -
irb
/ inspector (11) - json (11)
- monitor (11)
- observer (11)
- openssl (132)
- optparse (22)
- ostruct (22)
- pathname (757)
-
racc
/ parser (11) - rake (44)
-
rexml
/ document (242) - scanf (12)
- set (22)
-
shell
/ command-processor (6) -
shell
/ filter (6) - stringio (22)
- uri (77)
-
webrick
/ httpresponse (55) -
webrick
/ log (66) -
win32
/ registry (22) - win32ole (132)
- zlib (22)
クラス
-
ARGF
. class (11) - Array (11)
- BasicObject (11)
- BigDecimal (66)
- Bignum (6)
- DateTime (22)
-
Digest
:: Base (22) - ERB (11)
-
Enumerator
:: Lazy (20) -
Fiddle
:: Pointer (132) - File (11)
- Fixnum (6)
- Float (42)
- Hash (68)
- IO (33)
- IPAddr (22)
-
IRB
:: Context (22) -
IRB
:: Inspector (11) - Integer (22)
- Method (22)
- Module (33)
- Object (70)
-
OpenSSL
:: BN (44) -
OpenSSL
:: Netscape :: SPKI (22) -
OpenSSL
:: X509 :: CRL (22) -
OpenSSL
:: X509 :: Name (11) -
OpenSSL
:: X509 :: Request (22) - OpenStruct (22)
-
OptionParser
:: ParseError (22) - Pathname (757)
-
REXML
:: CData (33) -
REXML
:: Child (22) -
REXML
:: Element (66) -
REXML
:: Elements (55) -
REXML
:: Entity (22) -
REXML
:: Text (33) -
Racc
:: Parser (11) -
Rake
:: InvocationChain (22) -
Rake
:: TaskArguments (22) - Range (33)
- Rational (22)
- Regexp (22)
-
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (6) -
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (55)
- StringIO (22)
- Symbol (278)
- Thread (22)
-
Thread
:: Backtrace :: Location (22) -
URI
:: FTP (22) -
URI
:: Generic (33) -
URI
:: LDAP (22) - UnboundMethod (22)
-
WEBrick
:: BasicLog (66) -
WEBrick
:: HTTPResponse (55) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (22) -
WIN32OLE
_ PARAM (22) -
WIN32OLE
_ TYPE (33) -
WIN32OLE
_ TYPELIB (22) -
WIN32OLE
_ VARIABLE (22) -
Win32
:: Registry (22) -
Zlib
:: GzipWriter (22)
モジュール
- Enumerable (22)
-
Fiddle
:: Importer (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) - Kernel (77)
-
OpenSSL
:: Buffering (11) -
REXML
:: Node (11)
キーワード
- % (22)
- +@ (11)
- -@ (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (55)
- =~ (11)
- Location (11)
- MonitorMixin (11)
-
NEWS for Ruby 3
. 0 . 0 (4) - Observable (11)
- String (11)
- [] (77)
- []= (44)
- add (11)
-
add
_ delegate _ command _ to _ shell (6) -
add
_ element (11) -
add
_ namespace (22) -
add
_ trace _ func (11) - append (11)
- atime (11)
- basename (11)
- bind (11)
- binread (11)
- binwrite (11)
- birthtime (10)
- blockdev? (11)
- body= (11)
- build (44)
- capitalize (11)
- chardev? (11)
- chmod (11)
- chown (11)
- chunked= (11)
-
content
_ length (11) -
content
_ length= (11) - ctime (11)
- debug (11)
-
def
_ inspector (11) -
define
_ singleton _ method (22) - delete (11)
-
delete
_ all (11) -
delete
_ element (11) -
delete
_ namespace (11) - directory? (11)
- dirname (11)
- downcase (11)
-
each
_ entry (13) -
each
_ line (22) - empty? (8)
-
end
_ with? (5) - error (11)
- executable? (11)
-
executable
_ real? (11) - exist? (11)
- extname (11)
- fatal (11)
- file? (11)
- find (22)
- fnmatch (11)
- fnmatch? (11)
- format (11)
- ftype (11)
- grep (11)
-
grep
_ v (9) - grpowned? (11)
- handler= (11)
- hex (11)
- hexdigest (11)
- hostname= (11)
- id2name (11)
- info (11)
- inspect (138)
- inspect? (11)
-
inspect
_ mode= (11) - join (11)
- lchmod (22)
- lchown (11)
- length (11)
- lstat (11)
-
make
_ link (11) -
make
_ symlink (11) - match (11)
- merge! (11)
-
method
_ missing (11) - mkdir (11)
- mkpath (11)
- modulo (11)
- mtime (11)
- name (81)
- new (77)
- next (11)
-
next
_ float (10) -
next
_ sibling= (11) - oct (11)
- open (22)
- opendir (22)
- owned? (11)
- parse (11)
- pipe? (11)
-
prev
_ float (10) -
previous
_ sibling= (11) - print (22)
- ptr (11)
- puts (11)
- read (11)
- readable? (11)
-
readable
_ real? (11) - readlines (11)
- readlink (11)
- ref (11)
- remainder (11)
- rename (11)
- rmdir (11)
- rmtree (11)
-
ruby 1
. 6 feature (11) -
set
_ trace _ func (22) - setgid? (11)
- setuid? (11)
- size (22)
- size? (11)
- slice (55)
- socket? (11)
- split (11)
- sprintf (11)
- src (11)
-
start
_ with? (5) - stat (11)
- sticky? (11)
- strptime (11)
- succ (11)
- swapcase (11)
- symlink? (11)
- sysopen (11)
- syswrite (11)
- text= (11)
- then (12)
-
to
_ digits (11) -
to
_ f (11) -
to
_ i (11) -
to
_ json (11) -
to
_ path (11) -
to
_ pem (33) -
to
_ proc (11) -
to
_ set (22) -
to
_ str (33) -
to
_ string (11) -
to
_ sym (11) -
token
_ to _ str (11) -
transform
_ keys (18) -
transform
_ keys! (18) -
transform
_ values (16) -
transform
_ values! (16) - truncate (11)
- upcase (11)
- userinfo= (11)
- utime (11)
- value (22)
- warn (22)
-
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (66)
-
yield
_ self (14) - zero? (11)
- | (6)
検索結果
先頭5件
-
OpenSSL
:: BN # to _ s(base=10) -> String (18203.0) -
自身を表す文字列を返します。
...)
@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(16) # => "09"
p 10.to_bn.to_s(16)......A"
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... -
BigDecimal
# to _ s -> String (18168.0) -
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
...列に変換します (デフォルトは "0.xxxxxen" の形になります)。
@param n 出力の形式を Integer または String で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").to_s # ==> "0.123456e1"
//}
引数 n に正の整数が指定されたときは......decimal"
BigDecimal("0.1234567890123456789").to_s(10) # => "0.1234567890 123456789e0"
//}
引数 n に正の整数を表す文字列を指定することもできます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s("10") # => "0.1234567890 123456789e0"
//}......常に '-' が付きます。
//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"
//}
さらに文字列の最後に指数形式 ('E' または 'e')... -
BigDecimal
# to _ s(n) -> String (18168.0) -
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
...列に変換します (デフォルトは "0.xxxxxen" の形になります)。
@param n 出力の形式を Integer または String で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").to_s # ==> "0.123456e1"
//}
引数 n に正の整数が指定されたときは......decimal"
BigDecimal("0.1234567890123456789").to_s(10) # => "0.1234567890 123456789e0"
//}
引数 n に正の整数を表す文字列を指定することもできます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s("10") # => "0.1234567890 123456789e0"
//}......常に '-' が付きます。
//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"
//}
さらに文字列の最後に指数形式 ('E' または 'e')... -
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (18167.0) -
DNの文字列表現を返します。
...ess=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.examp.......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 = foobar, emailAddress = foobar@l......ab3.example.co.jp"
n.to_s(OpenSSL::X509::Name::MULTILINE)
# => "countryName = JP\nstateOrProvinceName = Kanagawa\nlocalityName = Yokohama\norganizationName = Example Company\norganizationalUnitName = Lab3\ncommonName = foobar\nemailAddr... -
Rational
# to _ s -> String (18137.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... -
Range
# to _ s -> String (18135.0) -
self を文字列に変換します(始端と終端のオブジェクトは #to_s メソッドで文 字列に変換されます)。
...self を文字列に変換します(始端と終端のオブジェクトは #to_s メソッドで文
字列に変換されます)。
@see Range#inspect
//emlist[例][ruby]{
(1..5).to_s # => "1..5"
("1".."5").to_s # => "1..5"
//}... -
Object
# to _ s -> String (18119.0) -
オブジェクトの文字列表現を返します。
...使って文字列に変換し
ます。
//emlist[][ruby]{
class Foo
def initialize num
@num = num
end
end
it = Foo.new(40)
puts it #=> #<Foo:0x2b69110>
class Foo
def to_s
"Class:Foo Number:#{@num}"
end
end
puts it #=> Class:Foo Number:40
//}
@see Object#to_str,Kernel.#String... -
Regexp
# to _ s -> String (18119.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... -
Scanf
:: FormatSpecifier # to _ s (18117.0) -
@todo
...@todo... -
Scanf
:: FormatString # to _ s (18117.0) -
@todo
...@todo...