1113件ヒット
[101-200件を表示]
(0.086秒)
別のキーワード
ライブラリ
- ビルトイン (841)
- csv (36)
-
fiddle
/ import (12) - matrix (24)
-
net
/ http (24) - rake (24)
-
rexml
/ document (36) - set (18)
- strscan (84)
- thread (14)
クラス
-
ARGF
. class (12) - Array (105)
- CSV (12)
-
CSV
:: Table (24) -
Encoding
:: Converter (24) - Enumerator (12)
- File (24)
-
File
:: Stat (36) - Hash (24)
- Integer (24)
- MatchData (24)
- Matrix (24)
- Method (48)
-
Net
:: HTTPGenericRequest (24) - Object (48)
- Proc (7)
-
REXML
:: Attributes (24) -
REXML
:: Elements (12) -
Rake
:: Application (12) - Random (12)
- Range (36)
-
RubyVM
:: InstructionSequence (12) - Set (24)
- String (223)
- StringScanner (84)
- Struct (36)
-
Thread
:: Queue (24) -
Thread
:: SizedQueue (70) - UnboundMethod (48)
モジュール
-
Fiddle
:: Importer (12) -
Rake
:: TaskManager (12)
キーワード
- << (7)
- == (24)
- [] (84)
- arity (24)
- bind (12)
- binmode (12)
-
bit
_ length (12) - blksize (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (48)
- byterindex (3)
- bytes (12)
- bytesize (12)
- clear (12)
- close (10)
- deq (12)
-
each
_ grapheme _ cluster (16) -
each
_ index (24) -
enum
_ for (24) - eql? (24)
-
field
_ size _ limit (12) - hash (24)
- length (108)
-
matched
_ size (12) - max (12)
- max= (12)
- minor (24)
- pack (21)
- peek (12)
- peep (12)
- pop (12)
-
primitive
_ convert (24) -
rest
_ size (12) - restsize (12)
- rindex (12)
- shift (12)
- size? (12)
- slice (72)
-
synthesize
_ file _ task (12) - terminate (12)
-
to
_ a (12) -
to
_ enum (24) - transpose (12)
- truncate (12)
- unpack (12)
検索結果
先頭5件
-
File
# size -> Integer (18214.0) -
ファイルのサイズを返します。
...ファイルのサイズを返します。
//emlist[例][ruby]{
File.open("/dev/null") do |f|
f.size #=> 0
end
//}
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX 失敗した場合に発生します。
@see File#lstat... -
File
:: Stat # size -> Integer (18214.0) -
ファイルサイズ(バイト単位)を返します。
...ファイルサイズ(バイト単位)を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.size #=> 1548
//}... -
REXML
:: Attributes # size -> Integer (18208.0) -
属性の個数を返します。
...ます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}... -
Struct
# size -> Integer (18208.0) -
構造体のメンバの数を返します。
...の記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith... -
MatchData
# size -> Integer (15230.0) -
部分文字列の数を返します(self.to_a.size と同じです)。
...部分文字列の数を返します(self.to_a.size と同じです)。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.size # => 4
//}... -
CSV
:: Table # size -> Integer (15226.0) -
(ヘッダを除く)行数を返します。
...(ヘッダを除く)行数を返します。
Array#length, Array#size に委譲しています。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.size # => 1
//}
@see Array#length, Array#size... -
Hash
# size -> Integer (15220.0) -
ハッシュの要素の数を返します。
...ハッシュの要素の数を返します。
//emlist[][ruby]{
h = { "d" => 100, "a" => 200, "v" => 300, "e" => 400 }
h.length #=> 4
h.size #=> 4
h.delete("a") #=> 200
h.length #=> 3
h.size #=> 3
//}... -
Set
# size -> Integer (15214.0) -
集合の要素数を返します。
...集合の要素数を返します。
//emlist[][ruby]{
require 'set'
p Set[10, 20, 30, 10].size # => 3
//}......集合の要素数を返します。
//emlist[][ruby]{
p Set[10, 20, 30, 10].size # => 3
//}... -
StringScanner
# rest _ size -> Integer (12242.0) -
文字列の残りの長さを返します。 stringscanner.rest.size と同じです。
...stringscanner.rest.size と同じです。
StringScanner#restsize は将来のバージョンで削除される予定です。
代わりにStringScanner#rest_size を使ってください。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
p s.rest_size # => 11
p s.res...