1874件ヒット
[1-100件を表示]
(0.490秒)
種類
- インスタンスメソッド (1723)
- 文書 (67)
- モジュール関数 (36)
- ライブラリ (36)
- クラス (12)
ライブラリ
- ビルトイン (891)
- benchmark (12)
- bigdecimal (24)
-
bigdecimal
/ util (12) - csv (48)
- erb (12)
-
irb
/ context (36) - json (12)
- matrix (12)
- openssl (312)
- ostruct (24)
- rake (60)
- rexml (12)
-
rexml
/ document (96) -
rubygems
/ package / tar _ header (12) - scanf (6)
- set (10)
- socket (36)
- uri (36)
-
webrick
/ httprequest (12) -
webrick
/ httpresponse (36) -
webrick
/ httputils (12) -
webrick
/ httpversion (12) - win32ole (12)
クラス
-
ARGF
. class (24) - Addrinfo (12)
- Array (24)
-
Benchmark
:: Tms (12) - BigDecimal (36)
- Bignum (6)
-
CGI
:: Cookie (12) -
CSV
:: Row (24) -
CSV
:: Table (24) - Complex (12)
- Data (6)
- ERB (12)
- Encoding (24)
- Exception (24)
- FalseClass (24)
- Fixnum (6)
- Float (24)
-
Gem
:: Package :: TarHeader (12) - Hash (24)
-
IRB
:: Context (36) - Integer (24)
- MatchData (12)
- Method (24)
- Module (36)
- NilClass (12)
- Object (78)
-
OpenSSL
:: BN (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: HMAC (36) -
OpenSSL
:: Netscape :: SPKI (24) -
OpenSSL
:: PKCS7 (24) -
OpenSSL
:: PKey :: DSA (72) -
OpenSSL
:: PKey :: RSA (72) -
OpenSSL
:: X509 :: CRL (24) -
OpenSSL
:: X509 :: Certificate (24) -
OpenSSL
:: X509 :: Name (12) - OpenStruct (24)
- Proc (24)
-
Process
:: Status (12) -
REXML
:: CData (24) -
REXML
:: Comment (24) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Element (12) -
REXML
:: NotationDecl (12) -
REXML
:: ParseException (12) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (12) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: TaskArguments (24) - Range (12)
- Rational (12)
- Regexp (12)
-
Scanf
:: FormatString (6) - Set (16)
-
Socket
:: Option (24) - String (72)
- Struct (24)
- Symbol (192)
- Thread (16)
-
Thread
:: Backtrace :: Location (24) - Time (6)
- TrueClass (12)
-
URI
:: Generic (36) - UnboundMethod (24)
- UncaughtThrowError (11)
- Vector (12)
-
WEBrick
:: Cookie (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (36) -
WEBrick
:: HTTPUtils :: FormData (12) -
WEBrick
:: HTTPVersion (12) -
WIN32OLE
_ TYPE (12)
モジュール
キーワード
- % (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - String (12)
- Symbol (12)
- [] (60)
-
_ _ to _ s _ _ (12) -
add
_ element (12) - bigdecimal (12)
- capitalize (12)
-
content
_ length (12) -
content
_ length= (12) - data (12)
-
define
_ singleton _ method (24) - downcase (12)
- entities (12)
- export (48)
- format (12)
- hexdigest (12)
- inspect (271)
- intern (12)
- irb (12)
- match (12)
- name (24)
- normalize (12)
- normalize! (12)
- oct (12)
- rss (12)
-
ruby 1
. 6 feature (12) - slice (60)
- sprintf (12)
- sprintf フォーマット (12)
- src (12)
- succ (12)
- swapcase (12)
- then (14)
-
to
_ csv (24) -
to
_ digits (12) -
to
_ f (12) -
to
_ i (12) -
to
_ json (12) -
to
_ pem (96) -
to
_ sockaddr (12) -
to
_ str (12) -
to
_ sym (12) - upcase (12)
- value (12)
-
yield
_ self (16)
検索結果
先頭5件
-
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (24202.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
Scanf
:: FormatString # to _ s (24101.0) -
@todo
@todo -
BigDecimal
# to _ s -> String (21282.0) -
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
...フォルトは "0.xxxxxen" の形になります)。
@param n 出力の形式を Integer または String で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").to_s # ==> "0.123456e1"
//}
引数 n に正の整数が指定されたときは、小数点で分けら......[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s(10) # => "0.1234567890 123456789e0"
//}
引数 n に正の整数を表す文字列を指定することもできます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s("10") # => "0.12345678......負の場合は常に '-' が付きます。
//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'... -
BigDecimal
# to _ s(n) -> String (21282.0) -
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
...フォルトは "0.xxxxxen" の形になります)。
@param n 出力の形式を Integer または String で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").to_s # ==> "0.123456e1"
//}
引数 n に正の整数が指定されたときは、小数点で分けら......[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s(10) # => "0.1234567890 123456789e0"
//}
引数 n に正の整数を表す文字列を指定することもできます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.1234567890123456789").to_s("10") # => "0.12345678......負の場合は常に '-' が付きます。
//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'... -
Vector
# to _ s -> String (21256.0) -
ベクトル(Vector)から文字列 (String) に変換します。
...ベクトル(Vector)から文字列 (String) に変換します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5, 7, 9]
p v.to_s
# => "Vector[2, 3, 5, 7, 9]"
//}... -
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"
//}... -
Process
:: Status # to _ s -> String (21218.0) -
to_i.to_s と同じです。
...to_i.to_s と同じです。... -
CSV
:: Table # to _ s(options = Hash . new) -> String (21215.0) -
CSV の文字列に変換して返します。
...
CSV の文字列に変換して返します。
ヘッダを一行目に出力します。その後に残りのデータを出力します。
デフォルトでは、ヘッダを出力します。オプションに :write_headers =>
false を指定するとヘッダを出力しません。
//emli......st[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_headers: false) # => "1,2,3\n"
//}... -
Object
# to _ s -> String (21214.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...