別のキーワード
ライブラリ
- ビルトイン (318)
- benchmark (4)
- bigdecimal (3)
-
cgi
/ session (1) - csv (11)
- date (9)
- dbm (2)
- delegate (10)
- digest (1)
- drb (8)
-
drb
/ extserv (1) -
drb
/ gw (1) -
drb
/ timeridconv (2) - erb (1)
- fiber (1)
- fiddle (2)
- gdbm (5)
-
io
/ console (3) -
io
/ nonblock (1) -
irb
/ cmd / chws (2) -
irb
/ cmd / pushws (3) -
irb
/ cmd / subirb (4) -
irb
/ context (6) -
irb
/ extend-command (1) -
irb
/ output-method (6) - json (46)
-
json
/ add / bigdecimal (1) -
json
/ add / complex (1) -
json
/ add / date (1) -
json
/ add / date _ time (1) -
json
/ add / exception (1) -
json
/ add / ostruct (1) -
json
/ add / range (1) -
json
/ add / rational (1) -
json
/ add / regexp (1) -
json
/ add / struct (1) -
json
/ add / symbol (1) -
json
/ add / time (1) - kconv (4)
- matrix (15)
- mkmf (4)
- monitor (2)
-
mutex
_ m (2) -
net
/ http (2) -
net
/ imap (5) -
net
/ pop (4) -
net
/ smtp (2) - observer (1)
- openssl (16)
- optparse (2)
- ostruct (4)
- pathname (2)
- pp (7)
- prettyprint (4)
- prime (4)
- pstore (5)
- psych (9)
- rake (4)
-
rdoc
/ code _ object (18) -
rdoc
/ generator / json _ index (1) -
rdoc
/ markup (1) -
rexml
/ document (13) -
rexml
/ parsers / pullparser (2) -
rinda
/ rinda (1) -
rinda
/ tuplespace (1) -
ripper
/ filter (3) - rss (3)
-
rubygems
/ config _ file (2) -
rubygems
/ package / tar _ header (1) -
rubygems
/ spec _ fetcher (2) -
rubygems
/ timer (1) - sdbm (3)
- set (4)
- shell (9)
-
shell
/ builtin-command (1) -
shell
/ command-processor (4) -
shell
/ filter (5) -
shell
/ process-controller (12) - shellwords (1)
- socket (6)
- stringio (8)
- strscan (2)
- sync (2)
- thwait (2)
- timeout (2)
- tracer (1)
- weakref (2)
-
webrick
/ cgi (1) -
webrick
/ httpauth / authenticator (1) -
webrick
/ httpauth / basicauth (1) -
webrick
/ httpversion (2) -
webrick
/ log (1) -
webrick
/ server (1) - win32ole (16)
-
yaml
/ dbm (13) - zlib (3)
クラス
-
ARGF
. class (1) - Addrinfo (5)
- Array (36)
- BasicObject (14)
-
Benchmark
:: Job (4) - BigDecimal (4)
- Binding (4)
-
CGI
:: Session (1) - CSV (4)
-
CSV
:: FieldInfo (3) -
CSV
:: Row (3) -
CSV
:: Table (1) - Class (3)
- Complex (4)
- DBM (2)
-
DRb
:: DRbIdConv (2) -
DRb
:: DRbObject (4) -
DRb
:: DRbServer (1) -
DRb
:: DRbUnknown (1) -
DRb
:: ExtServ (1) -
DRb
:: GW (1) -
DRb
:: TimerIdConv (2) - Date (9)
- DateTime (2)
- Delegator (7)
- ERB (1)
- Enumerator (8)
-
Enumerator
:: Lazy (3) -
Enumerator
:: Yielder (2) - Exception (1)
- Fiber (2)
-
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Pointer (1) -
File
:: Stat (2) - GDBM (5)
-
Gem
:: ConfigFile (2) -
Gem
:: Package :: TarHeader (1) -
Gem
:: SpecFetcher (2) - Hash (22)
- IO (7)
-
IRB
:: Context (6) -
IRB
:: ExtendCommand :: ChangeWorkspace (1) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (1) -
IRB
:: ExtendCommand :: Foreground (1) -
IRB
:: ExtendCommand :: IrbCommand (1) -
IRB
:: ExtendCommand :: Jobs (1) -
IRB
:: ExtendCommand :: Kill (1) -
IRB
:: ExtendCommand :: PopWorkspace (1) -
IRB
:: ExtendCommand :: PushWorkspace (1) -
IRB
:: ExtendCommand :: Workspaces (1) -
IRB
:: OutputMethod (5) -
IRB
:: StdioOutputMethod (1) -
JSON
:: Parser (2) -
JSON
:: State (29) - LocalJumpError (2)
- Matrix (12)
- Method (5)
- Module (15)
- NameError (1)
-
Net
:: HTTP (1) -
Net
:: HTTPGenericRequest (1) -
Net
:: IMAP (1) -
Net
:: IMAP :: Envelope (1) -
Net
:: IMAP :: FetchData (1) -
Net
:: IMAP :: ResponseCode (1) -
Net
:: IMAP :: UntaggedResponse (1) -
Net
:: POP3 (1) -
Net
:: POPMail (3) -
Net
:: SMTP (2) - NoMethodError (1)
- Numeric (2)
- Object (78)
-
ObjectSpace
:: WeakMap (2) -
OpenSSL
:: ASN1 :: ASN1Data (1) -
OpenSSL
:: ASN1 :: ObjectId (5) -
OpenSSL
:: X509 :: Certificate (2) -
OpenSSL
:: X509 :: ExtensionFactory (5) -
OpenSSL
:: X509 :: Request (2) - OpenStruct (5)
- OptionParser (1)
- PP (2)
- PStore (4)
-
PStore
:: DummyMutex (1) - Pathname (2)
- PrettyPrint (4)
- Prime (1)
-
Prime
:: PseudoPrimeGenerator (3) - Proc (1)
-
Psych
:: Nodes :: Node (2) -
Psych
:: ScalarScanner (1) -
Psych
:: Visitors :: YAMLTree (2) -
RDoc
:: CodeObject (18) -
RDoc
:: Generator :: JsonIndex (1) -
RDoc
:: Markup (1) -
RDoc
:: Options (1) -
REXML
:: Attribute (1) -
REXML
:: DocType (1) -
REXML
:: Element (1) -
REXML
:: Elements (2) -
REXML
:: Parent (8) -
REXML
:: Parsers :: PullEvent (2) -
Rake
:: TaskArguments (2) - Random (4)
- Range (20)
- Rational (1)
- Regexp (2)
-
Rinda
:: DRbObjectTemplate (1) -
Rinda
:: TupleEntry (1) -
Ripper
:: Filter (3) -
RubyVM
:: InstructionSequence (1) - SDBM (3)
- Set (4)
- Shell (9)
-
Shell
:: CommandProcessor (4) -
Shell
:: Concat (1) -
Shell
:: Filter (5) -
Shell
:: ProcessController (12) - SimpleDelegator (2)
- StopIteration (1)
- String (12)
- StringIO (8)
- StringScanner (2)
- Struct (7)
- Symbol (1)
- Thread (5)
-
Thread
:: Mutex (1) -
Thread
:: Queue (3) -
Thread
:: SizedQueue (6) - ThreadsWait (2)
- Time (4)
- TracePoint (4)
- Tracer (1)
- UNIXSocket (1)
- UnboundMethod (2)
- UncaughtThrowError (2)
- Vector (3)
-
WEBrick
:: BasicLog (1) -
WEBrick
:: CGI (1) -
WEBrick
:: GenericServer (1) -
WEBrick
:: HTTPAuth :: BasicAuth (1) -
WEBrick
:: HTTPVersion (2) - WIN32OLE (7)
-
WIN32OLE
_ EVENT (2) -
WIN32OLE
_ PARAM (1) -
WIN32OLE
_ TYPE (1) -
WIN32OLE
_ TYPELIB (1) -
WIN32OLE
_ VARIABLE (1) -
WIN32OLE
_ VARIANT (3) - WeakRef (2)
-
YAML
:: DBM (13) -
Zlib
:: Deflate (1) -
Zlib
:: GzipWriter (2)
モジュール
- DublinCoreModel (3)
- Enumerable (52)
-
IRB
:: ExtendCommandBundle (1) -
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (3) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (14)
- MonitorMixin (2)
-
Mutex
_ m (2) - Observable (1)
-
OpenSSL
:: Buffering (1) -
OptionParser
:: Arguable (1) -
Rake
:: Cloneable (2) -
Sync
_ m (2) -
WEBrick
:: HTTPAuth :: Authenticator (1)
キーワード
- ! (1)
- != (2)
- !~ (1)
- << (8)
- <=> (1)
- == (4)
- === (4)
- =~ (1)
- DelegateClass (1)
- Digest (1)
- JSON (1)
- [] (23)
- []= (4)
-
_ _ drbref (1) -
_ _ drburi (1) -
_ _ getobj _ _ (3) -
_ _ id _ _ (1) -
_ _ send _ _ (2) -
_ _ setobj _ _ (3) -
_ dump (1) -
_ getproperty (1) -
_ invoke (1) -
active
_ job? (1) -
active
_ jobs (1) -
active
_ jobs _ exist? (1) - add (1)
- adjugate (1)
- ajd (1)
- all (1)
- allocate (1)
-
allow
_ nan? (1) - amjd (1)
-
arg
_ config (1) - args (1)
-
array
_ nl (1) -
array
_ nl= (1) -
ascii
_ only? (1) - at (1)
- attr (1)
- begin (1)
- bind (2)
-
body
_ stream (1) - bsearch (3)
-
buffer
_ initial _ length (1) -
buffer
_ initial _ length= (1) - bytes (1)
- call (3)
-
check
_ circular? (1) -
chunk
_ while (1) - clamp (1)
- class (1)
-
class
_ eval (2) -
class
_ exec (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) - clone (2)
-
cofactor
_ expansion (1) - collect (3)
-
collect
_ concat (2) - column (2)
- comment (1)
- comment= (1)
- component (2)
- concat (3)
- configure (1)
- conj (3)
- conjugate (3)
- connect (1)
-
connect
_ from (1) -
connect
_ to (1) -
const
_ get (1) -
const
_ set (1) - context (2)
- convert (4)
- cooked (1)
- count (2)
- cover? (1)
-
create
_ extension (1) - cycle (2)
- data (2)
-
dc
_ subject (1) -
dc
_ subject= (1) -
dc
_ subjects (1) -
def
_ class (1) - default (3)
-
define
_ singleton _ method (2) - delete (11)
-
delete
_ at (1) -
delete
_ field (1) -
delete
_ if (1) -
delete
_ observer (1) - depth (1)
- depth= (1)
- deq (2)
- detect (1)
-
dev
_ major (1) - devmajor (1)
- dig (4)
- disable (1)
- disjoint? (1)
- display (1)
- divide (2)
-
document
_ children (1) -
document
_ children= (1) -
document
_ self (1) -
document
_ self= (1) - documented? (1)
- dup (2)
- each (6)
-
each
_ child (1) -
each
_ entry (1) -
each
_ with _ object (2) - element (2)
- enable (1)
- encode (3)
- end (1)
- enq (1)
- entries (1)
-
enum
_ for (2) - eql? (2)
- equal? (2)
- eval (2)
- evaluate (1)
- execute (9)
- exit (1)
-
exit
_ value (1) - extend (1)
-
extend
_ object (1) - extended (1)
- feed (1)
- fetch (11)
-
fetch
_ spec (1) -
fetch
_ values (2) - field (1)
- find (1)
-
find
_ all (1) -
find
_ index (1) -
finish
_ all _ jobs (3) - first (4)
-
flat
_ map (2) - flush (1)
- force (1)
- freeze (1)
- front (2)
- frozen? (1)
- generate (2)
- getlocal (2)
- grep (2)
-
grep
_ v (2) - group (1)
-
group
_ by (1) - handler (1)
- handler= (1)
- hash (1)
- header (1)
- include? (1)
- indent (1)
- indent= (1)
- index (2)
- initialize (1)
-
initialize
_ clone (1) -
initialize
_ copy (1) -
initialize
_ dup (1) - inject (4)
- inspect (1)
-
inspect
_ mode (1) -
instance
_ eval (2) -
instance
_ exec (1) -
instance
_ of? (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
instance
_ variables (1) - invert (1)
- invoke (1)
-
irb
_ exit (1) -
is
_ a? (1) - isjis (1)
- issjis (1)
- item (1)
- itself (1)
- jd (1)
- jisx0301 (2)
- jj (1)
- jobs (2)
-
jobs
_ exist? (1) - join (8)
-
join
_ nowait (1) -
json
_ creatable? (1) - julian (1)
- julian? (1)
- key (1)
- keys (1)
- kill (1)
-
kill
_ job (1) -
kind
_ of? (1) -
laplace
_ expansion (1) - last (3)
-
last
_ value (1) - line (1)
- list (1)
- listen (1)
- ljust (1)
- ln (1)
-
load
_ file (1) -
load
_ specs (1) -
local
_ variable _ get (1) -
local
_ variable _ set (1) - logger (2)
-
long
_ name (1) - lookup (1)
- mail (1)
- main (1)
- major (1)
- major= (1)
-
major
_ version (2) - map (2)
-
marshal
_ dump (2) -
marshal
_ load (2) - match (2)
- max (6)
-
max
_ by (1) -
max
_ nesting (1) -
max
_ nesting= (1) - member? (1)
- merge (1)
- method (1)
-
method
_ missing (3) - methods (1)
- min (6)
-
min
_ by (1) - minmax (2)
-
minmax
_ by (1) - mjd (1)
-
module
_ eval (2) -
module
_ exec (1) -
mon
_ synchronize (1) -
mu
_ synchronize (1) - new (1)
- next (1)
- nil? (1)
- noecho (1)
- nonblock (1)
- none? (1)
-
object
_ group (1) -
object
_ id (1) -
object
_ nl (1) -
object
_ nl= (1) - oid (1)
-
ole
_ obj _ help (1) -
ole
_ type (1) -
on
_ XXX (1) -
on
_ default (1) - one? (1)
- open (1)
- output (1)
- pack (1)
- parameters (3)
- params (1)
- parent (1)
- parent= (1)
-
parent
_ file _ name (1) -
parent
_ name (1) - parse (2)
- partition (1)
- peek (1)
- pop (4)
- pp (2)
- ppx (1)
-
pretty
_ inspect (1) -
pretty
_ print (1) -
pretty
_ print _ cycle (1) -
pretty
_ print _ inspect (1) -
pretty
_ print _ instance _ variables (1) - print (3)
- printf (1)
- printn (1)
-
private
_ methods (1) -
protected
_ methods (1) -
psych
_ to _ yaml (1) -
psych
_ y (1) -
public
_ method (1) -
public
_ methods (1) -
public
_ send (2) - push (4)
- pushd (1)
- pushdir (1)
- putc (4)
- puts (4)
-
quirks
_ mode (1) -
quirks
_ mode= (1) -
quirks
_ mode? (1) - rand (3)
- rassoc (1)
- raw (1)
-
rcptto
_ list (1) -
rdev
_ major (1) - reason (1)
- receiver (3)
-
recv
_ io (1) - reduce (3)
- reject (12)
- reject! (8)
- reload (1)
-
remove
_ class _ variable (1) -
remove
_ classes _ and _ modules (1) -
remove
_ const (1) -
remove
_ instance _ variable (1) -
remove
_ methods _ etc (1) - report (1)
-
respond
_ to? (1) -
respond
_ to _ missing? (1) - responses (1)
- result (1)
- resume (1)
-
return
_ value (1) - rjust (1)
- sample (2)
-
save
_ exception _ mode (1) -
save
_ limit (1) -
save
_ rounding _ mode (1) -
scan
_ full (1) -
search
_ full (1) - section (1)
- section= (1)
- select (5)
- self (1)
- send (2)
-
set
_ last _ value (1) - shelljoin (1)
- shift (5)
-
short
_ name (1) -
singleton
_ class (1) -
singleton
_ method (1) -
singleton
_ method _ added (1) -
singleton
_ method _ removed (1) -
singleton
_ method _ undefined (1) -
singleton
_ methods (1) - slice (1)
- slice! (1)
-
slice
_ when (2) - sn (1)
- sort (2)
-
sort
_ by (1) - source (1)
- space (1)
- space= (1)
-
space
_ before (1) -
space
_ before= (1) - start (3)
-
start
_ doc (1) -
start
_ job (1) -
stop
_ doc (1) - store (2)
- strftime (2)
- subject (3)
- subject= (2)
-
subject
_ certificate (1) -
subject
_ certificate= (1) -
subject
_ request (1) -
subject
_ request= (1) - sum (2)
-
sync
_ synchronize (1) - synchronize (5)
- syswrite (1)
- t (1)
- tag (1)
- taint (1)
- tainted? (1)
- tap (1)
-
terminate
_ job (1) - text (2)
-
thread
_ variable _ get (1) - time (1)
- timeout (2)
-
to
_ a (4) -
to
_ ary (1) -
to
_ c (1) -
to
_ enum (2) -
to
_ h (2) -
to
_ hash (2) -
to
_ id (2) -
to
_ int (1) -
to
_ io (1) -
to
_ json (21) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1) -
to
_ obj (2) -
to
_ proc (1) -
to
_ regexp (1) -
to
_ ruby (1) -
to
_ s (1) -
to
_ str (1) -
to
_ value (1) -
to
_ yaml (1) - tojis (1)
- tokenize (1)
- tosjis (1)
-
trace
_ func (1) - transact (3)
- transaction (1)
- transfer (1)
- transform (1)
- transpose (1)
- trust (1)
- umask (1)
-
unconverted
_ fields? (1) - unpack (1)
- unshift (2)
- untaint (1)
- untrust (1)
- untrusted? (1)
- value (5)
- values (3)
-
values
_ at (3) -
wait
_ all _ jobs _ execution (1) -
waiting
_ job? (1) -
waiting
_ jobs (1) -
waiting
_ jobs _ exist? (1) - width (1)
-
with
_ index (1) -
with
_ object (4) -
with
_ werror (2) - write (2)
-
write
_ nonblock (1) - xpopen (1)
- y (1)
- yield (1)
- zip (2)
- | (1)
検索結果
先頭5件
-
Time
# getlocal -> Time (58.0) -
タイムゾーンを地方時に設定した Time オブジェクトを新しく生成 して返します。
タイムゾーンを地方時に設定した Time オブジェクトを新しく生成
して返します。
@param utc_offset タイムゾーンを地方時に設定する代わりに協定世界時との
時差を、秒を単位とする整数か、"+HH:MM" "-HH:MM" 形式
の文字列で指定します。
//emlist[][ruby]{
p t = Time.utc(2000,1,1,20,15,1) # => 2000-01-01 20:15:01 UTC
p t.utc? # => true
p... -
Time
# getlocal(utc _ offset) -> Time (58.0) -
タイムゾーンを地方時に設定した Time オブジェクトを新しく生成 して返します。
タイムゾーンを地方時に設定した Time オブジェクトを新しく生成
して返します。
@param utc_offset タイムゾーンを地方時に設定する代わりに協定世界時との
時差を、秒を単位とする整数か、"+HH:MM" "-HH:MM" 形式
の文字列で指定します。
//emlist[][ruby]{
p t = Time.utc(2000,1,1,20,15,1) # => 2000-01-01 20:15:01 UTC
p t.utc? # => true
p... -
Time
# strftime(format) -> String (58.0) -
時刻を format 文字列に従って文字列に変換した結果を返します。
時刻を format 文字列に従って文字列に変換した結果を返します。
@param format フォーマット文字列を指定します。使用できるものは 以下の通りです。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば 20)
* %c: 日付と時刻 (%a %b %e %T %Y)
* %D: 日付 (%m/%d/%y)
* ... -
Enumerable
# collect _ concat -> Enumerator (40.0) -
各要素をブロックに渡し、その返り値を連結した配列を返します。
各要素をブロックに渡し、その返り値を連結した配列を返します。
ブロックの返り値は基本的に配列を返すべきです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[[1,2], [3,4]].flat_map{|i| i.map{|j| j*2}} # => [2,4,6,8]
//} -
Enumerable
# flat _ map -> Enumerator (40.0) -
各要素をブロックに渡し、その返り値を連結した配列を返します。
各要素をブロックに渡し、その返り値を連結した配列を返します。
ブロックの返り値は基本的に配列を返すべきです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[[1,2], [3,4]].flat_map{|i| i.map{|j| j*2}} # => [2,4,6,8]
//} -
Matrix
# t -> Matrix (40.0) -
転置行列 (transpose matrix) を返します。
転置行列 (transpose matrix) を返します。
self を Matrix のオブジェクトで、(m,n) 型行列としたとき a(j,i) を (i,j) 要素とする (n,m) 型行列を返します。 -
Matrix
# transpose -> Matrix (40.0) -
転置行列 (transpose matrix) を返します。
転置行列 (transpose matrix) を返します。
self を Matrix のオブジェクトで、(m,n) 型行列としたとき a(j,i) を (i,j) 要素とする (n,m) 型行列を返します。 -
Random
# rand -> Float (40.0) -
一様な擬似乱数を発生させます。
一様な擬似乱数を発生させます。
最初の形式では 0.0 以上 1.0 未満の実数を返します。
二番目の形式では 0 以上 max 未満の数を返します。
max が正の整数なら整数を、正の実数なら実数を返します。
0 や負の数を指定することは出来ません。
三番目の形式では range で指定された範囲の値を返します。
range の始端と終端が共に整数の場合は整数を、少なくとも片方が実数の場合は実数を返します。
rangeが終端を含まない(つまり ... で生成した場合)には終端の値は乱数の範囲から除かれます。
range.end - range.begin が整数を返す場合は rang... -
Random
# rand(max) -> Integer | Float (40.0) -
一様な擬似乱数を発生させます。
一様な擬似乱数を発生させます。
最初の形式では 0.0 以上 1.0 未満の実数を返します。
二番目の形式では 0 以上 max 未満の数を返します。
max が正の整数なら整数を、正の実数なら実数を返します。
0 や負の数を指定することは出来ません。
三番目の形式では range で指定された範囲の値を返します。
range の始端と終端が共に整数の場合は整数を、少なくとも片方が実数の場合は実数を返します。
rangeが終端を含まない(つまり ... で生成した場合)には終端の値は乱数の範囲から除かれます。
range.end - range.begin が整数を返す場合は rang... -
Random
# rand(range) -> Integer | Float (40.0) -
一様な擬似乱数を発生させます。
一様な擬似乱数を発生させます。
最初の形式では 0.0 以上 1.0 未満の実数を返します。
二番目の形式では 0 以上 max 未満の数を返します。
max が正の整数なら整数を、正の実数なら実数を返します。
0 や負の数を指定することは出来ません。
三番目の形式では range で指定された範囲の値を返します。
range の始端と終端が共に整数の場合は整数を、少なくとも片方が実数の場合は実数を返します。
rangeが終端を含まない(つまり ... で生成した場合)には終端の値は乱数の範囲から除かれます。
range.end - range.begin が整数を返す場合は rang... -
String
# to _ c -> Complex (40.0) -
自身を複素数 (Complex) に変換した結果を返します。
自身を複素数 (Complex) に変換した結果を返します。
以下の形式を解析できます。i、j は大文字、小文字のどちらでも解析できます。
* 実部+虚部i
* 実部+虚部j
* 絶対値@偏角
それぞれの数値は以下のいずれかの形式で指定します。先頭の空白文字や複素
数値の後にある文字列は無視されます。また、数値オブジェクトと同様に各桁
の間に「_」を入れる事ができます。
* "1/3" のような分数の形式
* "0.3" のような10進数の形式
* "0.3E0" のような x.xEn の形式
自身が解析できない値であった場合は 0+0i を返します。
//emlis... -
Date
# strftime(format = & # 39;%F& # 39;) -> String (22.0) -
与えられた雛型で日付を書式づけます。
与えられた雛型で日付を書式づけます。
つぎの変換仕様をあつかいます:
%A, %a, %B, %b, %C, %c, %D, %d, %e, %F, %G, %g, %H, %h, %I, %j, %k, %L, %l,
%M, %m, %N, %n, %P, %p, %Q, %R, %r, %S, %s, %T, %t, %U, %u, %V, %v, %W, %w, %X,
%x, %Y, %y, %Z, %z, %:z, %::z, %:::z, %%, %+
GNU 版にあるような幅指定などもできます。
strftime(3)、および Date.strptime も参照してくだ... -
Random
# bytes(size) -> String (22.0) -
ランダムなバイナリー文字列を返します。結果の文字列のサイズを指定できます。
ランダムなバイナリー文字列を返します。結果の文字列のサイズを指定できます。
@param size 結果の文字列のサイズをバイト数で指定します。
//emlist[例][ruby]{
r2 = Random.new(1)
p r2.bytes(10) # => "%\xF4\xC1j\xEB\x80G\xFF\x8C/"
//} -
Zlib
:: Deflate # params(level , strategy) -> nil (22.0) -
圧縮ストリームの設定を変更します。詳しくは zlib.h を 参照して下さい。設定の変更に伴うストリームからの出力は 出力バッファに保存されます。
圧縮ストリームの設定を変更します。詳しくは zlib.h を
参照して下さい。設定の変更に伴うストリームからの出力は
出力バッファに保存されます。
@param level 0-9の範囲の整数, または Zlib::DEFAULT_COMPRESSION を指定します。
詳細はzlib.hを参照してください。
@param strategy Zlib::FILTERED, Zlib::HUFFMAN_ONLY,
Zlib::DEFAULT_STRATEGY など指定します。詳細は zlib.h を参照してください。
requi... -
Zlib
:: GzipWriter # flush(flush = Zlib :: SYNC _ FLUSH) -> self (22.0) -
まだ書き出されていないデータをフラッシュします。
まだ書き出されていないデータをフラッシュします。
flush は Zlib::Deflate#deflate と同じです。
省略時は Zlib::SYNC_FLUSH が使用されます。
flush に Zlib::NO_FLUSH を指定することは無意味です。
@param flush Zlib::NO_FLUSH Zlib::SYNC_FLUSH Zlib::FULL_FLUSH などを指定します。
require 'zlib'
def case1
filename='hoge1.gz'
fw = File.open(filename, "w")
...