るりまサーチ

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

別のキーワード

  1. _builtin notimplementederror
  2. gets notimplementederror
  3. fcntl notimplementederror
  4. print notimplementederror
  5. notimplementederror _builtin

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 > >>

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....
<< 1 2 3 > >>