2018件ヒット
[201-300件を表示]
(0.051秒)
別のキーワード
種類
ライブラリ
- English (96)
- ビルトイン (1097)
- benchmark (36)
- csv (48)
- date (4)
- etc (12)
- fileutils (12)
- json (48)
-
json
/ add / date _ time (12) - matrix (38)
- objspace (24)
- psych (26)
- rake (24)
-
rake
/ packagetask (12) -
rbconfig
/ sizeof (12) - resolv (12)
-
rexml
/ document (24) - strscan (48)
- un (12)
クラス
-
ARGF
. class (48) - Array (155)
-
Benchmark
:: Tms (12) - CSV (12)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Data (15)
- Date (2)
- DateTime (14)
-
Encoding
:: Converter (60) - Enumerator (24)
-
Enumerator
:: Lazy (12) - IO (76)
- Integer (48)
-
JSON
:: State (24) - MatchData (60)
- Matrix (24)
- Method (12)
- Module (48)
- Numeric (12)
- Object (72)
- Proc (30)
-
REXML
:: DocType (24) -
Rake
:: FileList (24) -
Rake
:: PackageTask (12) -
Resolv
:: DNS :: Name (12) -
RubyVM
:: InstructionSequence (48) - String (30)
- StringScanner (48)
- Struct (22)
- Symbol (12)
- SystemCallError (12)
- Thread (12)
- Time (74)
- Vector (14)
モジュール
- Benchmark (24)
- Etc (12)
- FileUtils (12)
-
GC
:: Profiler (48) - JSON (24)
- Kernel (193)
- ObjectSpace (72)
- Psych (14)
- RbConfig (12)
-
RubyVM
:: AbstractSyntaxTree (10)
キーワード
-
$ ARGV (12) -
$ DEFAULT _ INPUT (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ LAST _ PAREN _ MATCH (12) -
$ LAST _ READ _ LINE (12) -
$ NR (12) -
$ ORS (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - === (36)
- CSV (12)
- FORMAT (24)
- Float (12)
- Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Proc (12)
- RegexpError (12)
- Ruby用語集 (12)
- SIZEOF (12)
- [] (22)
- []= (26)
- advise (12)
-
attribute
_ of (12) -
attributes
_ of (12) - autoload (24)
- autoload? (12)
-
base
_ label (12) - begin (12)
-
beginning
_ of _ line? (12) - benchmark (12)
- bigdecimal (12)
- binread (12)
- binwrite (12)
- bol? (12)
- bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
-
check
_ circular? (12) - chmod (12)
- chr (24)
- class (12)
- coerce (12)
-
cofactor
_ expansion (12) - combination (24)
-
const
_ set (12) -
copy
_ stream (12) - curry (24)
-
deconstruct
_ keys (17) - digits (24)
-
each
_ object (48) - end (12)
-
end
_ with? (6) - eof (12)
- eof? (12)
- fetch (36)
-
fetch
_ values (2) -
first
_ lineno (12) - generate (12)
- getlocal (12)
- gets (12)
-
gmt
_ offset (12) - gmtoff (12)
-
instance
_ of? (12) -
is
_ a? (24) -
kind
_ of? (24) - label (12)
- lambda (18)
-
laplace
_ expansion (12) - localtime (12)
-
memsize
_ of (12) -
memsize
_ of _ all (12) - new (66)
- offset (24)
- optparse (12)
- pack (21)
- pack テンプレート文字列 (12)
- permutation (24)
- pointer= (12)
- pos= (12)
- pread (8)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - proc (19)
- profile (6)
- pwrite (8)
-
raw
_ data (12) -
rb
_ ary _ entry (12) -
rbconfig
/ sizeof (12) - rdoc (12)
-
rdoc
/ markdown (12) -
rdoc
/ parser / c (12) - readbyte (12)
- readchar (12)
- readline (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - report (12)
- result (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (18) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ commands / query _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / server _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ commands / uninstall _ command (12) -
rubygems
/ security (12) -
safe
_ load (14) -
source
_ location (12) -
start
_ with? (6) - strftime (12)
-
subdomain
_ of? (12) - sysconf (12)
-
test
/ unit (12) -
to
_ f (12) -
to
_ json (12) -
total
_ time (12) - unpack (12)
- unparse (12)
-
utc
_ offset (12) -
with
_ index (36) - write (12)
- xmlrpc (3)
-
yaml
_ tag (12) - クラス/メソッドの定義 (12)
- パターンマッチ (12)
- 変数と定数 (4)
- 手続きオブジェクトの挙動の詳細 (12)
検索結果
先頭5件
-
RbConfig
:: SIZEOF -> Hash (6128.0) -
Ruby インタプリタが作成された環境における、C の型のサイズ情報を保持します。
...
Ruby インタプリタが作成された環境における、C の型のサイズ情報を保持します。
下の例では、実行している Ruby インタプリタは int が 4 バイトである環境で作成されたことを表しています。
//emlist[][ruby]{
require 'rbconfig/size......of'
RbConfig::SIZEOF['int'] # => 4
//}... -
ObjectSpace
. # memsize _ of(obj) -> Integer (6125.0) -
obj が消費するメモリ使用量をバイト単位で返します。
...しくないでしょう。
2.2 以降では RVALUE のサイズを含んだ結果を返します。
本メソッドは C Ruby 以外では動作しません。
//emlist[例][ruby]{
require 'objspace'
ObjectSpace.memsize_of(10) # => 0
ObjectSpace.memsize_of("12345" * 10) # => 91
//}... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (6125.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...ルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現されます。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!A......CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}... -
FileUtils
. options _ of(mid) -> Array (6113.0) -
与えられたメソッド名で使用可能なオプション名の配列を返します。
...与えられたメソッド名で使用可能なオプション名の配列を返します。
@param mid メソッド名を指定します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options_of(:rm) # => ["noop", "verbose", "force"]
//}... -
MatchData
# offset(name) -> [Integer , Integer] | [nil , nil] (6113.0) -
name という名前付きグループに対応する部分文字列のオフセットの配列 [start, end] を返 します。
...name という名前付きグループに対応する部分文字列のオフセットの配列 [start, end] を返
します。
//emlist[例][ruby]{
[ self.begin(name), self.end(name) ]
//}
と同じです。nameの名前付きグループにマッチした部分文字列がなければ
[nil, ni......][ruby]{
/(?<year>\d{4})年(?<month>\d{1,2})月(?:(?<day>\d{1,2})日)?/ =~ "2021年1月"
p $~.offset('year') # => [0, 4]
p $~.offset(:year) # => [0, 4]
p $~.offset('month') # => [5, 6]
p $~.offset(:month) # => [5, 6]
p $~.offset('day') # => [nil, nil]
p $~.offset('century') # => `off......set': undefined group name reference: century (IndexError)
//}
@see MatchData#begin, MatchData#end, MatchData#byteoffset... -
Time
# gmt _ offset -> Integer (6112.0) -
協定世界時との時差を秒を単位とする数値として返します。
...の場合][ruby]{
p Time.now.zone # => "JST"
p Time.now.utc_offset # => 32400
//}
タイムゾーンが協定世界時に設定されている場合は 0 を返します。
//emlist[協定世界時の場合][ruby]{
p Time.now.getgm.zone # => "UTC"
p Time.now.getgm.utc_offset # => 0... -
Time
# gmtoff -> Integer (6112.0) -
協定世界時との時差を秒を単位とする数値として返します。
...の場合][ruby]{
p Time.now.zone # => "JST"
p Time.now.utc_offset # => 32400
//}
タイムゾーンが協定世界時に設定されている場合は 0 を返します。
//emlist[協定世界時の場合][ruby]{
p Time.now.getgm.zone # => "UTC"
p Time.now.getgm.utc_offset # => 0... -
Time
# utc _ offset -> Integer (6112.0) -
協定世界時との時差を秒を単位とする数値として返します。
...の場合][ruby]{
p Time.now.zone # => "JST"
p Time.now.utc_offset # => 32400
//}
タイムゾーンが協定世界時に設定されている場合は 0 を返します。
//emlist[協定世界時の場合][ruby]{
p Time.now.getgm.zone # => "UTC"
p Time.now.getgm.utc_offset # => 0... -
MatchData
# offset(n) -> [Integer , Integer] | [nil , nil] (6108.0) -
n 番目の部分文字列のオフセットの配列 [start, end] を返 します。
...n 番目の部分文字列のオフセットの配列 [start, end] を返
します。
//emlist[例][ruby]{
[ self.begin(n), self.end(n) ]
//}
と同じです。n番目の部分文字列がマッチしていなければ
[nil, nil] を返します。
@param n 部分文字列を指定する数値......@raise IndexError 範囲外の n を指定した場合に発生します。
@see MatchData#begin, MatchData#end, MatchData#byteoffset...