るりまサーチ

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

別のキーワード

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

クラス

キーワード

検索結果

Object#respond_to?(name, include_all = false) -> bool (33.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...

Dir#fileno -> Integer (9.0)

self に関連づけられたファイル記述子を表す整数を返します。

...pen("..") { |d| d.fileno } # => 8
//}

本メソッドでは POSIX 2008 で定義されている dirfd() 関数を使用します。

@raise NotImplementedError Windows などの dirfd() 関数が存在しないプラッ
トフォームで発生します。
@raise IOError...

File#birthtime -> Time (9.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 (9.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....

IO#fdatasync -> 0 (9.0)

IO のすべてのバッファされているデータを直ちにディスクに書き込みます。

...い OS 上では代わりに
IO#fsync を呼びだします。

IO#fsync との違いは fdatasync(2) を参照してください。

@raise NotImplementedError fdatasync(2) も fsync(2) も
サポートされていない OS で発生します。

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

Temp...

絞り込み条件を変える

IO#pread(maxlen, offset, outbuf = "") -> string (9.0)

preadシステムコールを使ってファイルポインタを変更せずに、また現在のファイルポインタに 依存せずにmaxlenバイト読み込みます。

...シークまたは書き込みが失敗した場合に発生します。
@raise EOFError EOF に到達した時に発生します。
@raise NotImplementedError システムコールがサポートされていない OS で発生します。

//emlist[例][ruby]{
File.write("testfile", "This is line...

IO#pwrite(string, offset) -> Integer (9.0)

stringをoffsetの位置にpwrite()システムコールを使って書き込みます。

...込んだバイト数を返します。

@raise Errno::EXXX シークまたは書き込みが失敗した場合に発生します。
@raise NotImplementedError システムコールがサポートされていない OS で発生します。

//emlist[例][ruby]{
File.open("testfile", "w") do |f|
f....