1849件ヒット
[1-100件を表示]
(0.136秒)
ライブラリ
- ビルトイン (195)
- csv (77)
- digest (22)
- etc (22)
- fileutils (22)
-
json
/ add / exception (11) - logger (11)
- mkmf (22)
-
net
/ ftp (18) -
net
/ http (77) - open-uri (22)
- optparse (22)
- pathname (381)
- rake (33)
-
rake
/ packagetask (11) -
rexml
/ document (88) - rubygems (11)
-
rubygems
/ commands / which _ command (11) -
rubygems
/ custom _ require (11) -
rubygems
/ require _ paths _ builder (22) -
rubygems
/ specification (55) - shell (48)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (209)
- tempfile (110)
- uri (132)
-
win32
/ resolv (11)
クラス
- Addrinfo (44)
- CSV (77)
-
Digest
:: Base (22) - Dir (74)
- Exception (11)
- File (11)
-
File
:: Stat (22) -
Gem
:: Commands :: WhichCommand (11) -
Gem
:: Specification (55) - IO (33)
- LoadError (11)
- Logger (11)
-
Net
:: FTP (18) -
Net
:: HTTP (33) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPResponse (11) - OptionParser (22)
- Pathname (381)
-
REXML
:: Element (33) -
REXML
:: Elements (22) -
REXML
:: XPath (33) -
Rake
:: DefaultLoader (11) -
Rake
:: PackageTask (11) -
RubyVM
:: InstructionSequence (11) - Shell (48)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Socket (66)
- Tempfile (110)
- UNIXServer (44)
- UNIXSocket (55)
-
URI
:: FTP (33) -
URI
:: Generic (33) -
URI
:: HTTP (33) -
WEBrick
:: Cookie (22) -
Win32
:: Resolv (11)
モジュール
キーワード
-
$ -I (11) -
$ : (11) -
$ LOAD _ PATH (11) - <=> (22)
-
NEWS for Ruby 2
. 7 . 0 (5) - RequirePathsBuilder (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
- application (11)
- application= (11)
- ascend (11)
- atime (11)
-
attribute
_ alias _ singular (11) - basename (11)
- binread (11)
-
body
_ stream (11) -
body
_ stream= (11) - build (44)
- cd (6)
- cgi (11)
- chdir (6)
- children (11)
- chown (11)
- cleanpath (11)
- close (11)
- close! (11)
- component (11)
- confstr (11)
- create (22)
-
create
_ makefile (11) - ctime (11)
-
def
_ system _ command (6) - delete (22)
- descend (11)
-
dir
_ config (11) - dirname (11)
- each (22)
-
each
_ child (22) -
each
_ entry (11) -
each
_ filename (11) -
each
_ line (22) - empty? (8)
- entries (11)
-
family
_ addrinfo (22) - fdatasync (11)
- file (22)
- find (33)
- first (11)
- flush (11)
- foreach (29)
- formatter (11)
- gem (11)
-
gem
_ paths (11) -
get
_ hosts _ path (11) -
get
_ print (22) -
get
_ text (11) - glob (29)
- head (11)
-
install
_ system _ commands (6) - irb (11)
- join (22)
- load (11)
- logger (11)
- match (11)
- mkdir (18)
- mkpath (11)
- mlsd (18)
- mountpoint? (11)
- new (88)
- open (154)
-
open
_ uri (22) -
pack
_ sockaddr _ un (11) -
package
_ dir _ path (11) - parse (22)
- pathconf (11)
-
program
_ name (11) -
program
_ name= (11) - pushd (6)
- pushdir (6)
- rdoc (11)
- read (11)
-
read
_ body (11) - readlines (11)
- realdirpath (11)
- realpath (22)
- relative? (11)
-
relative
_ path _ from (11) -
remove
_ entry (11) -
request
_ uri (11) - require (11)
-
require
_ path (11) -
require
_ path= (11) -
require
_ paths (11) -
require
_ paths= (11) -
require
_ relative (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ require _ paths _ builder (11) - select (11)
- size? (11)
-
sockaddr
_ un (11) - split (22)
-
test
/ unit (1) - text (11)
-
to
_ a (22) -
to
_ json (11) -
to
_ s (11) - unix (33)
-
unix
_ path (11) -
unix
_ server _ socket (22) - unlink (22)
-
webrick
/ cgi (11) -
write
_ require _ paths _ file _ if _ needed (11) - xpath (11)
- セキュリティモデル (11)
検索結果
先頭5件
-
IO
# pathconf(name) -> Integer | nil (29206.0) -
fpathconf(3) で取得したファイルの設定変数の値を返します。
...fpathconf(3) で取得したファイルの設定変数の値を返します。
引数 name が制限に関する設定値であり、設定が制限がない状態の場合は nil
を返します。(fpathconf(3) が -1 を返し、errno が設定されていない
場合)
@param name Etc モジ......ュールの PC_ で始まる定数のいずれかを指定します。
//emlist[][ruby]{
require 'etc'
IO.pipe {|r, w|
p w.pathconf(Etc::PC_PIPE_BUF) # => 4096
}
//}... -
Gem
:: RequirePathsBuilder # write _ require _ paths _ file _ if _ needed(spec = @spec , gem _ home = @gem _ home) (27317.0) -
必要であれば、'.require_paths' というファイルを Gem ごとに作成します。
...必要であれば、'.require_paths' というファイルを Gem ごとに作成します。... -
IO
# fdatasync -> 0 (23018.0) -
IO のすべてのバッファされているデータを直ちにディスクに書き込みます。
...
IO のすべてのバッファされているデータを直ちにディスクに書き込みます。
fdatasync(2) をサポートしていない OS 上では代わりに
IO#fsync を呼びだします。
IO#fsync との違いは fdatasync(2) を参照してください。
@raise NotImplemented......Error fdatasync(2) も fsync(2) も
サポートされていない OS で発生します。
//emlist[例][ruby]{
require "tempfile"
Tempfile.open("testtmpfile") do |f|
f.print "test"
File.read(f.path) # => ""
f.fdatasync
File.read(f.path) # => "test"
end
//}... -
IO
# flush -> self (23018.0) -
IO ポートの内部バッファをフラッシュします。
...
IO ポートの内部バッファをフラッシュします。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX fflush(3) が失敗した場合に発生します。
//emlist[例][ruby]{
require "tempfile"
Tempfile.open("testtm......pfile") do |f|
f.print "test"
File.read(f.path) # => ""
f.flush
File.read(f.path) # => "test"
end
//}......
IO ポートの内部バッファをフラッシュします。
このメソッドを使ったとき、即座にメタデータを更新することは保証されません(特にWindowsで)。
即座にメタデータも更新したいときは IO#fsync を使います。
@raise IOError 自身......ープンされていなければ発生します。
@raise Errno::EXXX fflush(3) が失敗した場合に発生します。
//emlist[例][ruby]{
require "tempfile"
Tempfile.open("testtmpfile") do |f|
f.print "test"
File.read(f.path) # => ""
f.flush
File.read(f.path) # => "test"
end
//}... -
File
. path(filename) -> String (21283.0) -
指定されたファイル名を文字列で返します。filename が文字列でない場合は、to_path メソッドを呼びます。
...filename が文字列でない場合は、to_path メソッドを呼びます。
@param filename ファイル名を表す文字列か to_path メソッドが定義されたオブジェクトを指定します。
//emlist[例][ruby]{
require 'pathname'
class MyPath
def initialize(path)
@path......= path
end
def to_path
File.absolute_path(@path)
end
end
File.path("/dev/null") # => "/dev/null"
File.path(Pathname("/tmp")) # => "/tmp"
File.path(MyPath.new(".")) # => "/Users/user/projects/txt"
//}... -
URI
:: Generic # path -> String | nil (21253.0) -
自身の path を文字列で返します。設定されていない場合は nil を返します。
... path を文字列で返します。設定されていない場合は nil を返します。
require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> nil
p URI......('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
Net
:: HTTPGenericRequest # path -> String (21229.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
Tempfile
# path -> String | nil (21219.0) -
テンポラリファイルのパス名を返します。
...テンポラリファイルのパス名を返します。
Tempfile#close! を実行後だった場合にはnilを返します。
require "tempfile"
tf = Tempfile.new("hoo")
p tf.path # => "/tmp/hoo.10596.0"
tf.close!
p tf.path # => nil... -
UNIXSocket
# path -> String (21213.0) -
UNIX ソケットのパスを返します。
...UNIX ソケットのパスを返します。
クライアント側はパスを持たないため空文字列となります。
例:
require 'socket'
UNIXServer.open("/tmp/s") {|serv|
p serv.path #=> "/tmp/s"
}... -
Gem
:: Specification # require _ path=(path) (18437.0) -
Gem::Specification#require_paths= の単数バージョンです。
...Gem::Specification#require_paths= の単数バージョンです。
@param path この Gem パッケージを使用した際に require するファイルが置かれているディレクトリを指定します。
@see Gem::Specification#require_paths=...