5294件ヒット
[1-100件を表示]
(0.108秒)
ライブラリ
- ビルトイン (1866)
- benchmark (12)
- bigdecimal (36)
-
bigdecimal
/ util (24) -
cgi
/ core (12) -
cgi
/ html (48) - csv (72)
- date (12)
- dbm (12)
- digest (24)
- erb (24)
- fiddle (72)
- gdbm (24)
- getoptlong (36)
- ipaddr (36)
-
irb
/ cmd / help (12) -
irb
/ context (36) -
irb
/ ext / save-history (12) - json (132)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) - kconv (96)
- logger (12)
- matrix (36)
-
net
/ http (24) -
net
/ imap (12) -
net
/ pop (12) -
net
/ smtp (36) - openssl (876)
- optparse (180)
- ostruct (24)
- pathname (108)
- pstore (12)
- psych (60)
- rake (108)
-
rdoc
/ markup (36) -
rdoc
/ top _ level (36) - resolv (36)
- rexml (12)
-
rexml
/ document (180) -
ripper
/ lexer (12) -
rubygems
/ indexer (24) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (12) -
rubygems
/ requirement (12) -
rubygems
/ specification (24) -
rubygems
/ validator (12) -
rubygems
/ version (24) - scanf (6)
- sdbm (24)
- set (10)
- shell (12)
-
shell
/ command-processor (6) -
shell
/ filter (18) - socket (84)
- stringio (112)
- uri (84)
-
webrick
/ httpauth / authenticator (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (36) -
webrick
/ httputils (12) -
webrick
/ httpversion (12) - win32ole (144)
-
yaml
/ dbm (12)
クラス
-
ARGF
. class (24) - Addrinfo (24)
- Array (93)
-
Benchmark
:: Tms (12) - BigDecimal (60)
- Bignum (6)
-
CGI
:: Cookie (12) - CSV (12)
-
CSV
:: Row (24) -
CSV
:: Table (24) - Complex (24)
- DBM (12)
- Data (6)
- Date (24)
- DateTime (12)
-
Digest
:: Base (24) - Dir (24)
- ERB (24)
- Encoding (24)
-
Encoding
:: Converter (36) - Enumerator (24)
-
Enumerator
:: ArithmeticSequence (7) -
Enumerator
:: Chain (7) - Exception (56)
- FalseClass (24)
-
Fiddle
:: Pointer (72) - File (24)
- Fixnum (6)
- Float (24)
- GDBM (24)
-
Gem
:: Indexer (24) -
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (12) -
Gem
:: Requirement (12) -
Gem
:: Specification (24) -
Gem
:: Validator (12) -
Gem
:: Version (24) - GetoptLong (36)
- Hash (24)
- IO (18)
- IPAddr (36)
-
IRB
:: Context (48) -
IRB
:: ExtendCommand :: Help (12) - Integer (24)
- Logger (12)
- MatchData (98)
- Matrix (12)
- Method (24)
- Module (60)
- NameError (12)
-
Net
:: HTTPResponse (24) -
Net
:: IMAP :: Envelope (12) -
Net
:: POPMail (12) -
Net
:: SMTP (36) - NilClass (12)
- Object (162)
-
OpenSSL
:: ASN1 :: ASN1Data (12) -
OpenSSL
:: BN (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: HMAC (36) -
OpenSSL
:: Netscape :: SPKI (48) -
OpenSSL
:: OCSP :: Request (12) -
OpenSSL
:: OCSP :: Response (12) -
OpenSSL
:: PKCS12 (12) -
OpenSSL
:: PKCS7 (48) -
OpenSSL
:: PKey :: DH (60) -
OpenSSL
:: PKey :: DSA (96) -
OpenSSL
:: PKey :: EC (36) -
OpenSSL
:: PKey :: EC :: Group (36) -
OpenSSL
:: PKey :: RSA (96) -
OpenSSL
:: SSL :: Session (36) -
OpenSSL
:: X509 :: Attribute (12) -
OpenSSL
:: X509 :: CRL (48) -
OpenSSL
:: X509 :: Certificate (48) -
OpenSSL
:: X509 :: Extension (36) -
OpenSSL
:: X509 :: ExtensionFactory (36) -
OpenSSL
:: X509 :: Name (36) -
OpenSSL
:: X509 :: Request (48) -
OpenSSL
:: X509 :: Store (12) -
OpenSSL
:: X509 :: StoreContext (36) - OpenStruct (36)
- OptionParser (156)
-
OptionParser
:: ParseError (24) - PStore (12)
- Pathname (108)
- Proc (36)
-
Process
:: Status (12) -
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
RDoc
:: Markup (36) -
RDoc
:: TopLevel (36) -
REXML
:: Attribute (24) -
REXML
:: CData (24) -
REXML
:: Comment (24) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: NotationDecl (12) -
REXML
:: ParseException (12) -
REXML
:: Text (24) -
Rake
:: Application (12) -
Rake
:: EarlyTime (12) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (12) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: Task (12) -
Rake
:: TaskArguments (24) - Range (64)
- Rational (36)
- Regexp (36)
-
Resolv
:: DNS :: Name (12) -
Resolv
:: IPv4 (12) -
Resolv
:: IPv6 (12) -
Ripper
:: Lexer (12) -
RubyVM
:: InstructionSequence (10) - SDBM (24)
-
Scanf
:: FormatString (6) - Set (16)
- Shell (12)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) -
Socket
:: Option (24) - String (536)
- StringIO (112)
- Struct (36)
- Symbol (338)
- Thread (28)
-
Thread
:: Backtrace :: Location (36) - Time (30)
- TracePoint (24)
- TrueClass (12)
- UDPSocket (36)
-
URI
:: Generic (36) -
URI
:: MailTo (48) - UnboundMethod (24)
- UncaughtThrowError (11)
- Vector (24)
-
WEBrick
:: Cookie (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (36) -
WEBrick
:: HTTPUtils :: FormData (12) -
WEBrick
:: HTTPVersion (12) -
WIN32OLE
_ METHOD (36) -
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (36) -
WIN32OLE
_ TYPELIB (24) -
WIN32OLE
_ VARIABLE (24) -
YAML
:: DBM (12)
モジュール
-
CGI
:: HtmlExtension (48) -
CGI
:: QueryExtension (12) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (36) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
REXML
:: Node (12) -
WEBrick
:: HTTPAuth :: Authenticator (12)
キーワード
- % (26)
- * (24)
- << (12)
- <=> (12)
- == (12)
- === (12)
- =~ (12)
- [] (132)
- []= (12)
-
_ _ to _ s _ _ (12) -
absolute
_ path (12) -
add
_ element (12) -
add
_ html (12) -
add
_ special (12) -
add
_ word _ pair (12) - autoload (12)
- autoload? (12)
- autorequire (12)
- binread (12)
- binwrite (12)
- bytes (31)
- capitalize (12)
- captures (12)
- casecmp (12)
- casecmp? (9)
- chars (31)
- clone (12)
- codepoints (31)
-
col
_ sep (12) -
content
_ length (12) -
content
_ length= (12) -
create
_ ext _ from _ string (12) -
create
_ extension (24) - data (12)
- deconstruct (2)
-
define
_ singleton _ method (24) -
dest
_ directory (12) - directory (12)
- downcase (12)
- dup (12)
- each (12)
-
each
_ byte (24) -
each
_ char (24) -
each
_ codepoint (36) -
each
_ grapheme _ cluster (16) -
each
_ line (36) - echo (18)
-
end
_ with? (6) - entities (12)
- error= (12)
-
error
_ string (24) - execute (12)
- export (60)
- extname (12)
-
file
_ absolute _ name (12) -
file
_ relative _ name (12) - formatter (12)
- ftype (12)
-
full
_ name (12) - get (12)
-
get
_ option (12) -
grapheme
_ clusters (16) - gsub (12)
- gsub! (12)
- headers (12)
- help (12)
- helpstring (12)
- hex (12)
- hexdigest (24)
-
history
_ file (12) - hton (12)
- id2name (12)
-
in
_ reply _ to (12) -
insert
_ output (12) - inspect (309)
- intern (24)
- join (12)
- kconv (12)
- length (12)
- lines (31)
- match (12)
- name (89)
- next (12)
- normalize (12)
- normalize! (12)
- oct (12)
- order (36)
- order! (18)
-
original
_ dir (12) - pack (21)
- parse (18)
- parse! (9)
- path (51)
- pathmap (12)
- permute (18)
- permute! (9)
-
program
_ name (12) -
psych
_ to _ yaml (12) -
public
_ method (12) - putback (24)
- read (12)
-
read
_ body (24) - readlines (12)
- realm (12)
-
record
_ separator (6) -
remove
_ leading _ dot _ dir (12) - result (12)
- send (36)
-
send
_ mail (12) - sendmail (12)
-
server
_ protocol (12) -
set
_ backtrace (12) -
singleton
_ class (12) -
singleton
_ method (12) - size (12)
- slice (60)
-
source
_ location (12) - split (12)
- src (12)
-
start
_ with? (6) - step (14)
- store (36)
- succ (12)
- swapcase (12)
- syswrite (12)
- then (14)
-
to
_ a (90) -
to
_ binary (10) -
to
_ c (12) -
to
_ csv (36) -
to
_ d (12) -
to
_ der (216) -
to
_ digits (12) -
to
_ f (12) -
to
_ i (12) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ mailtext (12) -
to
_ path (39) -
to
_ pem (156) -
to
_ r (12) -
to
_ rfc822text (12) -
to
_ ruby (12) -
to
_ s (1200) -
to
_ sockaddr (12) -
to
_ str (48) -
to
_ string (24) -
to
_ sym (24) -
to
_ text (120) -
to
_ yaml (24) - toeuc (12)
- tojis (12)
- tokenize (24)
- tolocale (12)
- top (12)
- tosjis (12)
- toutf16 (12)
- toutf32 (12)
- toutf8 (12)
- unpack (12)
- upcase (12)
- upto (12)
- value (24)
-
values
_ at (12) - verify (24)
- version (12)
-
with
_ object (24) - write (24)
- yaml (12)
-
yield
_ self (16)
検索結果
先頭5件
-
URI
:: MailTo # to -> String (21209.0) -
自身の e-mail アドレスを文字列で返します。
...自身の e-mail アドレスを文字列で返します。
例:
require 'uri'
p URI.parse("mailto:nospam@example.com").to #=> "nospam@example.com"... -
REXML
:: Comment # string -> String (18205.0) -
コメント文字列を返します。
コメント文字列を返します。 -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (15269.0) -
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
...自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
@see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json... -
String
# to _ i(base = 10) -> Integer (15246.0) -
文字列を 10 進数表現された整数であると解釈して、整数に変換します。
....to_i # => 10
p "+10".to_i # => 10
p "-10".to_i # => -10
p "010".to_i # => 10
p "-010".to_i # => -10
//}
整数とみなせない文字があればそこまでを変換対象とします。
変換対象が空文字列であれば 0 を返します。
//emlist[例][ruby]{
p "0x11".to......_i # => 0
p "".to_i # => 0
//}
基数を指定することでデフォルトの 10 進以外に 2 〜 36 進数表現へ変換できます。
それぞれ Ruby の整数リテラルで使用可能なプリフィクスは無視されます。
また、base に 0 を指定するとプリフ......[例][ruby]{
p "01".to_i(2) # => 1
p "0b1".to_i(2) # => 1
p "07".to_i(8) # => 7
p "0o7".to_i(8) # => 7
p "1f".to_i(16) # => 31
p "0x1f".to_i(16) # => 31
p "0b10".to_i(0) # => 2
p "0o10".to_i(0) # => 8
p "010".to_i(0) # => 8
p "0d10".to_i(0) # => 10
p "0x10".to_i(0) # => 16
//}... -
String
# to _ s -> String (15235.0) -
self を返します。
...ruby]{
p "str".to_s # => "str"
p "str".to_str # => "str"
//}
このメソッドは、文字列を他のクラスのインスタンスと混ぜて処理したいときに有効です。
例えば返り値が文字列か nil であるメソッド some_method があるとき、
to_s メソッド......を使うと以下のように統一的に処理できます。
//emlist[例][ruby]{
# some_method(5).downcase だと返り値が nil のときに
# エラーになるので to_s をはさむ
p some_method(5).to_s.downcase
//}... -
String
# to _ str -> String (15235.0) -
self を返します。
...ruby]{
p "str".to_s # => "str"
p "str".to_str # => "str"
//}
このメソッドは、文字列を他のクラスのインスタンスと混ぜて処理したいときに有効です。
例えば返り値が文字列か nil であるメソッド some_method があるとき、
to_s メソッド......を使うと以下のように統一的に処理できます。
//emlist[例][ruby]{
# some_method(5).downcase だと返り値が nil のときに
# エラーになるので to_s をはさむ
p some_method(5).to_s.downcase
//}... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (15227.0) -
自身から生成した JSON 形式の文字列を返します。
...指定します。
//emlist[例][ruby]{
require "json"
puts "test".to_json # => "test"
puts '"'.to_json # => "\""
puts "\\".to_json # => "\\"
puts "𤘩宮城".to_json(ascii_only: true) # => "\ud851\ude29\u5bae\u57ce"
//}... -
String
# to _ f -> Float (15210.0) -
文字列を 10 進数表現と解釈して、浮動小数点数 Float に変換します。
...uby]{
p "-10".to_f # => -10.0
p "10e2".to_f # => 1000.0
p "1e-2".to_f # => 0.01
p ".1".to_f # => 0.1
p "1_0_0".to_f # => 100.0 # 数値リテラルと同じように区切りに _ を使える
p " \n10".to_f # => 10.0 # 先頭の空白・改行は無視される
p "7xa.5".to_f # => 7.0
//......返します。
変換対象が空文字列のケースでも、0.0 を返します。
//emlist[][ruby]{
p "".to_f # => 0.0
p "nan".to_f # => 0.0
p "INF".to_f # => 0.0
p "-Inf".to_f # => 0.0
//}
変換後の Float が有限の値を取れないときは、Float::INFINITY を用います......2
p ("10" * 1000).to_f # => Infinity
# warning: Float 10101010101010101010... out of range
//}
なお、このメソッドとは逆に、数値を文字列に変換するには
Kernel.#sprintf, String#%, Integer#to_s
を使用します。
@see String#hex, String#oct, String#to_i,
Kernel.#I... -
String
# tolocale -> String (15208.0) -
self のエンコーディングをロケールエンコーディングに変換した文字列を 返します。変換元のエンコーディングは文字列の内容から推測します。
...は Encoding.locale_charmap を見てください。
このメソッドは MIME エンコードされた文字列を展開し、
いわゆる半角カナを全角に変換します。
これらを変換したくない場合は、 String#encode
を使ってください。
@see Kconv.#tolocale...