るりまサーチ

最速Rubyリファレンスマニュアル検索!
1131件ヒット [1-100件を表示] (0.035秒)

別のキーワード

  1. stringio read
  2. _builtin read
  3. io read
  4. csv read
  5. pathname read

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Pathname#read(*args) -> String | nil (21123.0)

IO.read(self.to_s, *args)と同じです。

...IO.read(self.to_s, *args)と同じです。


@see IO.read...

Thread#name -> String (21107.0)

self の名前を返します。

...self の名前を返します。


@see Thread#name=...

Win32::Registry#read(name, *rtype) (18214.0)

@todo

...@todo

レジストリ値 name を読み,[ type, data ]
の配列で返します。
name
が nil の場合,(標準) レジストリ値が読み込まれます。

type はレジストリ値の型です。(⇒Win32::Registry::Constants)
data はレジストリ値のデータで,クラスは以...

CSV.read(path, options = Hash.new) -> [Array] | CSV::Table (18161.0)

CSV ファイルを配列の配列にするために使います。 headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。

...[ruby]{
require "csv"
require "pp"

File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
CSV

pp CSV.read("test.csv")

# => [["id", "first name", "last name", "age"],
# ["1", "taro", "tanaka", "20"],
# ["2", "jiro", "suzuki"...
....write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
CSV

table = CSV.read("test.csv", headers: true)
p table.class # => CSV::Table
p table[0] # => #<CSV::Row "id":"1" "first name":"taro" "last name":"tanaka" "age":"20">
//}

@see...

static const char * thread_status_name(enum thread_status status) (12300.0)

絞り込み条件を変える

Thread#name=(name) -> String (9236.0)

self の名前を name に設定します。

...self の名前を name に設定します。

プラットフォームによっては pthread やカーネルにも設定を行う場合があります。

@raise ArgumentError 引数に ASCII 互換ではないエンコーディングのものを
指定した場合に発生し...
...ます。

//emlist[例][ruby]{
a = Thread.new{}
a.name = 'named'
a.name # => "named"
a.inspect # => "#<Thread:0x00007f85ac8721f0@named@(irb):1 dead>"
//}

@see Thread#name...

Pathname#readlink -> Pathname (9200.0)

Pathname.new(File.readlink(self.to_s)) と同じです。

...Pathname.new(File.readlink(self.to_s)) と同じです。


@see File.readlink...

Gem::Package::TarReader::Entry#full_name -> String (9101.0)

自身の完全な名前を返します。

自身の完全な名前を返します。

Pathname#binread(*args) -> String | nil (9100.0)

IO.binread(self.to_s, *args)と同じです。

....binread(self.to_s, *args)と同じです。

//emlist[例][ruby]{
require "pathname"

pathname = Pathname("testfile")
pathname.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname.binread(20) # => "This is line one\nThi"
pathname.binread(20,...
...10) # => "ne one\nThis is line "
//}

@see IO.binread...

Pathname#readable? -> bool (9100.0)

FileTest.readable?(self.to_s) と同じです。

...FileTest.readable?(self.to_s) と同じです。


@see FileTest.#readable?...

絞り込み条件を変える

<< 1 2 3 ... > >>