るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file ctime
  4. file mtime
  5. file atime

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 >>

WIN32OLE_METHOD#helpfile -> String | nil (6107.0)

ヘルプファイルのパス名を取得します。

...ファイルが未定
義ならばnilを返します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbooks')
method = WIN32OLE_METHOD.new(tobj, 'Add')
puts method.helpfile # => C:\...\VBAXL9.CHM

メソッドにヘルプファイルが関連付けられて...

Net::FTP::MLSxEntry#facts -> { String => String|Integer|Time } (25.0)

そのエントリの「facts」を返します。

...ん。
3659 では
modify, perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。


* "modify" : 変更時刻 (Time)
* "create": 作成時刻
* "perm": パーミッション(String)
* "type": 種類(String, "file", "dir", "cdir", "pdir" など...
...* "size": ファイルサイズ (Integer, octet単位)
* "unique": ユニークID (String)
* "lang": ファイルの言語 (String)
* "media-type": メディアタイプ (String)
* "charset": 文字エンコーディング (String)

サーバが UNIX 系 OS の場合は以下のような f...

Net::FTP#mlsd(pathname = nil) -> [Net::FTP::MLSxEntry] (19.0)

pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。

...# =>
# [#<Net::FTP::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=>"fle",
# "type"=>"cdir",
# "unique"=>"801U1FE8E6",
# "unix.group"=>1042,
# "unix.mode"=>493,
# "unix.owner"=>106},
# @pathname...
...::MLSxEntry:0x00558fbfa33e10
# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.group"=>0,
# "unix.mode"=>420,
# "unix.owner"=>106},
# @pathname="README.txt"...

Net::FTP#mlsd(pathname = nil) {|entry| ... } -> () (19.0)

pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。

...# =>
# [#<Net::FTP::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=>"fle",
# "type"=>"cdir",
# "unique"=>"801U1FE8E6",
# "unix.group"=>1042,
# "unix.mode"=>493,
# "unix.owner"=>106},
# @pathname...
...::MLSxEntry:0x00558fbfa33e10
# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.group"=>0,
# "unix.mode"=>420,
# "unix.owner"=>106},
# @pathname="README.txt"...

Net::HTTP#post(path, data, header = nil, dest = nil) -> Net::HTTPResponse (19.0)

サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。

...ェクトは有効な body を
持ちません。

POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。

dest は時代遅れの引数...
...i-bin/search.rb', 'query=subject&target=ruby')

# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')

# using block
File
.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') do |str|
f.write str
end
}
//}

@see Net::HTTP#re...

絞り込み条件を変える

Net::HTTP#post(path, data, header = nil, dest = nil) {|body_segment| .... } -> Net::HTTPResponse (19.0)

サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。

...ェクトは有効な body を
持ちません。

POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を用います。

dest は時代遅れの引数...
...i-bin/search.rb', 'query=subject&target=ruby')

# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')

# using block
File
.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') do |str|
f.write str
end
}
//}

@see Net::HTTP#re...

Socket::AncillaryData#unix_rights -> [IO] | nil (19.0)

Unix domain socket の SCM_RIGHTS 制御メッセージに含まれる ファイルディスクリプタを IO オブジェクトの配列として返します。

...cillaryData: UNIX SOCKET RIGHTS 6 7>
p ctl.unix_rights #=> [#<IO:fd 6>, #<Socket:fd 7>]
p File.identical?(STDIN, ctl.unix_rights[0]) #=> true
p File.identical?(s1, ctl.unix_rights[1]) #=> true

# If :scm_rights=>true is not given, unix_rights returns nil
s1,...
...yData.unix_rights(STDIN, s1)
_, _, _, ctl = s2.recvmsg
p ctl #=> #<Socket::AncillaryData: UNIX SOCKET RIGHTS 6 7>
p ctl.unix_rights #=> nil


@raise TypeError family/level/type が AF_UNIX/SOL_SOCKET/SCM_RIGHTS でない場合
に発生します。
@see Socket::Constants::SCM_RIGHTS...

WEBrick::HTTPRequest#query -> Hash (13.0)

リクエストのクエリーあるいはクライアントがフォームへ入力した値を表すハッシュを返します。

...巨大な文字列が
生成されてしまいます。

例:

h = req.query
p h['q'] #=> "ruby rails session"
p h['upfile']['content-type'] #=> "plain/text"
p h['upfile'].filename #=> "my_file.txt"
p h['upfile'] #=> "hoge hoge hoge"...

WIN32OLE_METHOD#helpstring -> String | nil (13.0)

メソッドのヘルプ文字列を取得します。

...明する文字列です。

@return ヘルプ文字列を返します。未定義ならばnilを返します。

tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'IWebBrowser')
method = WIN32OLE_METHOD.new(tobj, 'Navigate')
puts method.helpstring # => Navigates to a URL or file....
<< < 1 2 >>