153件ヒット
[1-100件を表示]
(0.142秒)
種類
- インスタンスメソッド (106)
- 特異メソッド (29)
- ライブラリ (11)
- 文書 (7)
ライブラリ
- ビルトイン (39)
- fileutils (11)
- pathname (11)
-
rubygems
/ package / tar _ header (11) -
rubygems
/ remote _ fetcher (11) - shell (6)
-
shell
/ command-processor (12) -
shell
/ filter (12) -
webrick
/ httpservlet / filehandler (11) - win32ole (11)
クラス
- File (28)
-
File
:: Stat (11) -
Gem
:: Package :: TarHeader (11) -
Gem
:: RemoteFetcher (11) - Pathname (11)
- Shell (6)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
WIN32OLE
_ VARIABLE (11)
モジュール
- FileUtils (11)
キーワード
-
NEWS for Ruby 2
. 5 . 0 (7) - birthtime (21)
-
fetch
_ path (11) - lutime (7)
-
not
_ modified? (11) -
ole
_ type _ detail (11) - tsort (11)
- utime (40)
検索結果
先頭5件
-
Gem
:: Package :: TarHeader # mtime -> Integer (21317.0) -
tar のヘッダに含まれる mtime を返します。
...tar のヘッダに含まれる mtime を返します。... -
Shell
:: CommandProcessor # mtime(filename) -> Time (21207.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.mtime... -
Shell
:: Filter # mtime(filename) -> Time (21207.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.mtime... -
File
:: Stat # birthtime -> Time (6254.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.stat("testfile").birthtime #=> 2014-02-2......4 11:19:17 +0900
File.stat("testfile").mtime #=> 2014-02-24 11:19:27 +0900
File.stat("testfile").ctime #=> 2014-02-24 11:19:37 +0900
File.stat("testfile").atime #=> 2014-02-24 11:19:47 +0900
//}... -
File
# birthtime -> Time (6206.0) -
作成された時刻を Time オブジェクトとして返します。
...@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
File.new("testfile").birthtime......#=> Wed Apr 09 08:53:14 CDT 2003
@see File#lstat, File#atime, File#ctime, File#mtime... -
tsort (6024.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
=== Example
//emlist[][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
{1=>[2, 3],......ent_from(target) {|ns|
if ns.length != 1
fs = ns.delete_if {|n| Array === n}
raise TSort::Cyclic.new("cyclic dependencies: #{fs.join ', '}")
end
n = ns.first
if Array === n
outputs, inputs, block = n
inputs_time = inputs.map {|f| File.mtime f}.......分に関するアルゴリズムを使っているからです。
とはいえ strongly_connected_components という正確な名前は長過ぎます。
=== References
R. E. Tarjan,
Depth First Search and Linear Graph Algorithms,
SIAM Journal on Computing, Vol. 1, No. 2, pp. 146-160, June 1972.... -
Gem
:: RemoteFetcher # fetch _ path(uri , mtime = nil , head = false) -> String | Hash (3407.0) -
与えられた URI からダウンロードしたデータを文字列として返します。
...与えられた URI からダウンロードしたデータを文字列として返します。
ヘッダ情報のみ取得した場合はハッシュを返します。
@param uri データ取得先の URI を指定します。
@param mtime 更新時刻を指定します。
@param head 真を指... -
WEBrick
:: HTTPServlet :: DefaultFileHandler # not _ modified?(request , response , mtime , etag) -> bool (3407.0) -
自身に関連付けられたファイルが更新されていなければ、真を返します。 そうでない場合は、偽を返します。
...偽を返します。
@param request クライアントからのリクエストを表す WEBrick::HTTPRequest オブジェクトです。
@param response クライアントへのレスポンスを表す WEBrick::HTTPResponse オブジェクトです。
@param mtime 自身に関連付けられた......ファイルの最終修正時刻を指定します。
@param etag ETag の値を指定します。... -
Shell
:: CommandProcessor # utime(atime , mtime , *filename) -> Integer (3301.0) -
File クラスにある同名のクラスメソッドと同じです.
...ある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの... -
Shell
:: Filter # utime(atime , mtime , *filename) -> Integer (3301.0) -
File クラスにある同名のクラスメソッドと同じです.
...ある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの... -
WIN32OLE
_ VARIABLE # ole _ type _ detail -> [String] (3206.0) -
変数の型と属性を取得します。
...@return 変数の型と属性を文字列配列で返します。
tobj = WIN32OLE_TYPE.new('Microsoft XML, v5.0', 'tagSTATSTG')
tobj.variables.each do |v|
puts "#{v.ole_type} [#{v.ole_type_detail.join(', ')}] #{v.name}"
end
出力結果
Unknown Type 31 [] pwcsName # => VT_LPWSTR......OLE::VARIANTで未定義なので変換できない
UI4 [UI4] type
_ULARGE_INTEGER [USERDEFINED, _ULARGE_INTEGER] cbSize
_FILETIME [USERDEFINED, _FILETIME] mtime
_FILETIME [USERDEFINED, _FILETIME] ctime
_FILETIME [USERDEFINED, _FILETIME] atime
UI4 [UI4] grfMode
UI4 [UI4] grfLocksSupported
GU......ID [USERDEFINED, GUID] clsid
UI4 [UI4] grfStateBits
UI4 [UI4] reserved
上例のように、WIN32OLE_VARIABLEで取得できる変数あるいはその元となる構造
体は、必ずしもOLEオートメーション互換データというわけではありません。こ
のようなデータ...