205件ヒット
[1-100件を表示]
(0.075秒)
別のキーワード
ライブラリ
- ビルトイン (74)
- delegate (24)
-
irb
/ input-method (12) -
irb
/ output-method (12) - pathname (11)
- prime (36)
- stringio (12)
- tsort (24)
クラス
- Delegator (24)
- Dir (11)
- File (11)
-
File
:: Stat (12) - IO (28)
-
IRB
:: InputMethod (12) -
IRB
:: OutputMethod (12) - Object (12)
- Pathname (11)
-
Prime
:: PseudoPrimeGenerator (36) - StringIO (12)
モジュール
- TSort (24)
キーワード
-
_ _ getobj _ _ (12) -
_ _ setobj _ _ (12) - birthtime (34)
- fcntl (12)
- fdatasync (12)
- fileno (11)
- gets (12)
- next (12)
- pread (8)
- print (12)
- pwrite (8)
-
respond
_ to? (12) - rewind (12)
- succ (12)
-
tsort
_ each _ child (12) -
tsort
_ each _ node (12)
検索結果
先頭5件
-
Object
# respond _ to?(name , include _ all = false) -> bool (31.0) -
オブジェクトがメソッド name を持つとき真を返します。
...ることをいいます。
Windows での Process.fork や GNU/Linux での File.lchmod の
ような NotImplementedError が発生する場合は false を返します。
※ NotImplementedError が発生する場合に false を返すのは
Rubyの組み込みライブラリや標準ライブ......ラリなど、C言語で実装されているメソッドのみです。
Rubyで実装されたメソッドで NotImplementedError が発生する場合は true を返します。
メソッドが定義されていない場合は、Object#respond_to_missing? を呼
び出してその結果を返し......dule Template
def main
start
template_method
finish
end
def start
puts "start"
end
def template_method
raise NotImplementedError.new
end
def finish
puts "finish"
end
end
class ImplTemplateMethod
include Template
def template_method
"implement templ... -
IRB
:: InputMethod # gets (23.0) -
NotImplementedError が発生します。
...
NotImplementedError が発生します。
@raise NotImplementedError 必ず発生します。... -
IRB
:: OutputMethod # print(*objs) (23.0) -
NotImplementedError が発生します。
...
NotImplementedError が発生します。
@param objs 任意のオブジェクトを指定します。
@raise NotImplementedError 必ず発生します。... -
StringIO
# fcntl -> () (17.0) -
例外 NotImplementedError が常に発生します。
...例外 NotImplementedError が常に発生します。... -
Delegator
# _ _ getobj _ _ -> object (13.0) -
委譲先のオブジェクトを返します。
...オブジェクトを返します。
本メソッドは、サブクラスで再定義する必要があり、
デフォルトでは NotImplementedError が発生します。
@raise NotImplementedError サブクラスにて本メソッドが再定義されていない場合に発生します。... -
Delegator
# _ _ setobj _ _ (obj) -> object (7.0) -
委譲先のオブジェクトをセットします。
...委譲先のオブジェクトをセットします。
@param obj 委譲先のオブジェクトを指定します。
@raise NotImplementedError サブクラスにて本メソッドが再定義されていない場合に発生します。... -
Dir
# fileno -> Integer (7.0) -
self に関連づけられたファイル記述子を表す整数を返します。
...pen("..") { |d| d.fileno } # => 8
//}
本メソッドでは POSIX 2008 で定義されている dirfd() 関数を使用します。
@raise NotImplementedError Windows などの dirfd() 関数が存在しないプラッ
トフォームで発生します。
@raise IOError... -
File
# birthtime -> Time (7.0) -
作成された時刻を Time オブジェクトとして返します。
...れている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
File.new("testfile").birthtime #=> Wed Apr 09 08:53:14 CDT 2003... -
File
:: Stat # birthtime -> Time (7.0) -
作成された時刻を返します。
...作成された時刻を返します。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
//emlist[][ruby]{
File.write("testfile", "foo")
sleep 10
File.write("testfile", "bar")
sleep 10
File.chmod(0644, "testfile")
sleep 10
File.read("testfile")
File....