5299件ヒット
[201-300件を表示]
(0.054秒)
ライブラリ
- ビルトイン (1871)
- 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 (69)
- 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 (19)
- 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件
-
String
# to _ r -> Rational (15168.0) -
自身を有理数(Rational)に変換した結果を返します。
...ダースコアで繋いだ形式
//emlist[例][ruby]{
' 2 '.to_r # => (2/1)
'1/3'.to_r # => (1/3)
'-9.2'.to_r # => (-46/5)
'-9.2E2'.to_r # => (-920/1)
'1_234_567'.to_r # => (1234567/1)
'1_234/5_678'.to_r # => (617/2839)
//}
Kernel.#Rational に文字列を指定し......ruby]{
'21 june 09'.to_r # => (21/1)
'21/06/09'.to_r # => (7/2) # 21/6 を約分して 7/2。
//}
変換できないような文字列を指定した場合は 0/1 を返します。
//emlist[][ruby]{
'foo'.to_r # => (0/1)
''.to_r # => (0/1)
'bwv 1079'.to_r # => (0/1)
//... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (15120.0) -
生の文字列を格納したハッシュを生成します。
...する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json # source sequence is illegal/malformed (JSON::GeneratorError)... -
String
# upto(max , exclusive = false) {|s| . . . } -> self (15117.0) -
self から始めて max まで 「次の文字列」を順番にブロックに与えて繰り返します。 「次」の定義については String#succ を参照してください。
...します。
「次」の定義については String#succ を参照してください。
たとえば以下のコードは a, b, c, ... z, aa, ... az, ..., za を
出力します。
//emlist[][ruby]{
("a" .. "za").each do |str|
puts str
end
'a'.upto('za') do |str|
puts str
end
//}
@param max... -
String
# to _ d -> BigDecimal (15102.0) -
自身を BigDecimal に変換します。BigDecimal(self) と同じです。
自身を BigDecimal に変換します。BigDecimal(self) と同じです。
@return BigDecimal に変換したオブジェクト -
IPAddr
# to _ string -> String (12328.0) -
標準的な文字列表現に変換します。
...標準的な文字列表現に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_s... -
REXML
:: Attribute # to _ string -> String (12316.0) -
"name='value'" という形式の文字列を返します。
..."name='value'" という形式の文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//}... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (12237.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生......ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, age)
@name, @age = name, age
end
end
tanaka = Person.new("tanaka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}... -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (12209.0) -
自身から生成した JSON 形式の文字列を返します。
...N 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
[1, 2, 3].to_json # => "[1,2,3]"
//}... -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (12209.0) -
自身から生成した JSON 形式の文字列を返します。
...JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//}...