ライブラリ
- ビルトイン (198)
- csv (22)
- digest (11)
- forwardable (33)
- json (11)
-
minitest
/ spec (1) -
minitest
/ unit (2) - openssl (11)
- pp (11)
- prime (11)
-
rdoc
/ context (11) -
rubygems
/ command _ manager (11) - singleton (11)
- syslog (11)
-
webrick
/ httpservlet / abstract (11) -
webrick
/ httpservlet / prochandler (11)
クラス
- BasicObject (33)
- CSV (22)
-
Gem
:: CommandManager (11) -
JSON
:: Parser (11) - Module (77)
- Object (78)
- Prime (11)
-
RDoc
:: Context (11) - UnboundMethod (22)
-
WEBrick
:: HTTPServlet :: AbstractServlet (11) -
WEBrick
:: HTTPServlet :: ProcHandler (11)
モジュール
- Forwardable (33)
-
MiniTest
:: Assertions (2) - Singleton (11)
- Syslog (11)
キーワード
- Digest (11)
- Instance (11)
- TYPES (11)
-
assert
_ instance _ of (1) -
assert
_ kind _ of (1) - constants (11)
-
def
_ instance _ delegator (11) -
def
_ instance _ delegators (11) -
get
_ instance (22) -
ins
_ methods _ i (11) -
ins
_ methods _ priv _ i (11) -
ins
_ methods _ prot _ i (11) - inspect (11)
-
instance
_ delegate (11) -
instance
_ eval (22) -
instance
_ exec (11) -
instance
_ method (11) -
instance
_ methods (11) -
instance
_ of? (11) -
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variable _ set (11) -
instance
_ variables (11) -
must
_ be _ instance _ of (1) - new (11)
-
pretty
_ print _ instance _ variables (11) -
private
_ instance _ methods (11) -
protected
_ instance _ methods (11) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
rb
_ class _ allocate _ instance (11) -
rb
_ class _ instance _ methods (11) -
rb
_ class _ new _ instance (11) -
rb
_ class _ private _ instance _ methods (11) -
rb
_ class _ protected _ instance _ methods (11) -
rb
_ is _ instance _ id (11) -
rb
_ obj _ instance _ eval (11) -
rb
_ obj _ instance _ variables (11) -
rb
_ obj _ is _ instance _ of (11) -
rb
_ obj _ remove _ instance _ variable (11) -
remove
_ instance _ variable (11) -
to
_ s (11)
検索結果
先頭5件
-
Singleton
. instance -> object (33301.0) -
そのクラスの唯一のインスタンスを返します。 最初に呼ばれたときはそのインスタンスを生成します。
...そのクラスの唯一のインスタンスを返します。
最初に呼ばれたときはそのインスタンスを生成します。
Singleton を include したクラスで定義されますので、
正確には Singleton モジュールのメソッドではありません。... -
static int ins
_ methods _ i(ID key , NODE *body , VALUE ary) (32216.0) -
rb_class_instance_methods() のイテレータブロック (通常版)。
...rb_class_instance_methods() のイテレータブロック (通常版)。... -
static int ins
_ methods _ priv _ i(ID key , NODE *body , VALUE ary) (32216.0) -
rb_class_instance_methods() のイテレータブロック (private メソッド版)。
...rb_class_instance_methods() のイテレータブロック
(private メソッド版)。... -
static int ins
_ methods _ prot _ i(ID key , NODE *body , VALUE ary) (32216.0) -
rb_class_instance_methods() のイテレータブロック (protected メソッド版)。
...rb_class_instance_methods() のイテレータブロック
(protected メソッド版)。... -
CSV
. instance(data = $ stdout , options = Hash . new) -> CSV (30414.0) -
このメソッドは CSV.new のように CSV のインスタンスを返します。 しかし、返される値は Object#object_id と与えられたオプションを キーとしてキャッシュされます。
...る値は Object#object_id と与えられたオプションを
キーとしてキャッシュされます。
ブロックが与えられた場合、生成されたインスタンスをブロックに渡して評価した
結果を返します。
@param data String か IO のインスタンスを......am options CSV.new のオプションと同じオプションを指定できます。
//emlist[例][ruby]{
require "csv"
options = { headers: true }
text =<<-EOS
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
csv = CSV.instance(text, options)
csv......2 = CSV.instance(text, options)
csv.object_id == csv2.object_id # => true
print csv.read
# => id,first name,last name,age
# 1,taro,tanaka,20
# 2,jiro,suzuki,18
# 3,ami,sato,19
# 4,yumi,adachi,21
//}
@see CSV.new... -
CSV
. instance(data = $ stdout , options = Hash . new) {|csv| . . . } -> object (30414.0) -
このメソッドは CSV.new のように CSV のインスタンスを返します。 しかし、返される値は Object#object_id と与えられたオプションを キーとしてキャッシュされます。
...る値は Object#object_id と与えられたオプションを
キーとしてキャッシュされます。
ブロックが与えられた場合、生成されたインスタンスをブロックに渡して評価した
結果を返します。
@param data String か IO のインスタンスを......am options CSV.new のオプションと同じオプションを指定できます。
//emlist[例][ruby]{
require "csv"
options = { headers: true }
text =<<-EOS
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
EOS
csv = CSV.instance(text, options)
csv......2 = CSV.instance(text, options)
csv.object_id == csv2.object_id # => true
print csv.read
# => id,first name,last name,age
# 1,taro,tanaka,20
# 2,jiro,suzuki,18
# 3,ami,sato,19
# 4,yumi,adachi,21
//}
@see CSV.new... -
Gem
:: CommandManager . instance -> Gem :: CommandManager (30301.0) -
自身をインスタンス化します。
自身をインスタンス化します。 -
Prime
. instance -> Prime (30301.0) -
Prime のデフォルトのインスタンスを返します。
...Prime のデフォルトのインスタンスを返します。... -
Syslog
. # instance -> self (30301.0) -
selfを返します。(旧版との互換性のため)
selfを返します。(旧版との互換性のため) -
Object
# pretty _ print _ instance _ variables -> [String | Symbol] (24501.0) -
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。 返されたインスタンス変数はプリティプリント時に表示されます。
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。
返されたインスタンス変数はプリティプリント時に表示されます。
pp に表示したくないインスタンス変数がある場合にこのメソッドを再定義します。