2133件ヒット
[1-100件を表示]
(0.131秒)
ライブラリ
- ビルトイン (1341)
- csv (36)
- erb (36)
- fiddle (12)
-
irb
/ cmd / load (36) - logger (12)
- mkmf (24)
-
net
/ http (60) - optparse (12)
- pathname (108)
- rake (300)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) - ripper (12)
-
ripper
/ filter (12) -
rubygems
/ installer (12) - un (48)
- win32ole (12)
- zlib (24)
クラス
-
ARGF
. class (96) - BasicObject (24)
- Binding (19)
- CSV (36)
- Class (12)
- Dir (23)
- ERB (36)
-
Fiddle
:: Function (12) - File (132)
-
File
:: Stat (504) -
Gem
:: Installer (12) - IO (443)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) - Logger (12)
- Method (14)
-
Net
:: HTTP (48) -
Net
:: HTTPResponse (12) - Object (12)
- OptionParser (12)
- Pathname (108)
- Proc (14)
-
Rake
:: Application (12) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (204) -
Rake
:: FileTask (24) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (24) - Ripper (12)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (36) -
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipWriter (24)
モジュール
- Enumerable (12)
- FileUtils (12)
- Kernel (72)
-
Rake
:: Cloneable (24) -
Rake
:: TaskManager (12)
キーワード
- << (26)
- <=> (12)
- == (12)
- >> (14)
-
absolute
_ path (12) -
add
_ row (12) - advise (12)
- ascend (12)
- atime (24)
-
base
_ label (12) - birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
- call (12)
- chardev? (12)
- chmod (24)
- chown (12)
- chunk (12)
- cleanpath (12)
-
clear
_ exclude (12) - clone (24)
- close (24)
- closed? (12)
-
create
_ makefile (12) - ctime (24)
-
def
_ class (12) - descend (12)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- dup (24)
- each (69)
-
each
_ byte (12) -
each
_ codepoint (12) -
each
_ filename (12) -
each
_ line (72) - egrep (12)
- eval (12)
-
excluded
_ from _ list? (12) - executable? (12)
-
executable
_ real? (12) - execute (36)
- existing (12)
- existing! (12)
- ext (12)
-
external
_ encoding (12) - fcntl (12)
- file? (12)
- filename (48)
- filename= (12)
- fileno (23)
- finish (12)
- flock (12)
- flush (12)
- fnmatch (12)
-
formatted
_ program _ filename (12) - formatter (12)
- ftype (12)
- get (24)
- getbyte (12)
- getc (12)
- gid (12)
- grpowned? (12)
- gsub! (12)
- helpfile (12)
- import (12)
- ino (12)
-
inplace
_ mode= (12) -
install
_ rb (12) -
instance
_ eval (24) -
internal
_ encoding (12) -
is
_ a? (12) - isatty (12)
-
kind
_ of? (12) - label (12)
- load (36)
- lstat (12)
- mode (12)
- mtime (24)
- needed? (12)
- nlink (12)
- owned? (12)
-
package
_ files (12) -
package
_ files= (12) - path (24)
- pathmap (12)
- pipe? (12)
- post (24)
- pread (8)
- puts (12)
- rakefile (12)
- rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - read (12)
-
read
_ body (12) - readable? (12)
-
readable
_ real? (12) - readbyte (12)
- readchar (12)
- readlines (36)
- realpath (24)
- reopen (36)
- resolve (12)
-
respond
_ to? (12) - rm (12)
-
set
_ encoding _ by _ bom (6) - setgid? (12)
- setuid? (12)
- size (24)
- size? (12)
- socket? (12)
-
source
_ location (7) - split (12)
- stat (12)
- sticky? (12)
- sub! (12)
- superclass (12)
- symlink? (12)
- sync (12)
-
synthesize
_ file _ task (12) - tell (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ i (12) -
to
_ path (12) -
to
_ s (12) - touch (12)
- truncate (12)
- tty? (12)
- uid (12)
-
wait
_ writable (12) -
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - zero? (12)
検索結果
先頭5件
-
ARGF
. class # file -> IO (24248.0) -
現在開いている処理対象の File オブジェクト(または IO オブジェ クト)を返します。
...開いている処理対象の File オブジェクト(または IO オブジェ
クト)を返します。
$ echo "foo" > foo
$ echo "bar" > bar
$ ruby argf.rb foo bar
ARGF.file # => #<File:foo>
ARGF.read(5) # => "foo\nb"
ARGF.file # => #<File:bar>
ARGFが現在開いて... -
FileUtils
# ruby(*args) {|result , status| . . . } (24230.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
File
:: Stat # file? -> bool (18220.0) -
通常ファイルの時に真を返します。
...通常ファイルの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).file? #=> true
//}... -
File
# lstat -> File :: Stat (15254.0) -
ファイルの状態を含む File::Stat オブジェクトを生成して返します。 シンボリックリンクに関してリンクそのものの情報を返します。 lstat(2) を実装していないシステムでは、IO#statと同じです。
...ファイルの状態を含む File::Stat オブジェクトを生成して返します。
シンボリックリンクに関してリンクそのものの情報を返します。
lstat(2) を実装していないシステムでは、IO#statと同じです。
@raise Errno::EXXX 失敗した場合......close されている場合に発生します。
//emlist[例][ruby]{
# testlink は testfile のシンボリックリンク
File.open("testlink") do |f|
p f.lstat == File.stat("testfile") # => false
p f.stat == File.stat("testfile") # => true
end
//}
@see IO#stat, File.stat, File.lsta... -
File
# flock(operation) -> 0 | false (15239.0) -
ファイルをロックします。
...クされます。
ロックの取得に成功した場合は 0 を返します。
File::LOCK_NB (ノンブロッキング) を指定すると、本来ならブロックされる場合に
ブロックされずに false を返すようになります。
@param operation ロックに対する操作......rror 自身が close されている場合に発生します。
@raise Errno::EXXX operation に不正な整数を与えた場合などに発生します。
引数 operation に有効な定数は以下の通りです。定数は File::Constants で定義されていますが、
File クラスの......親クラスの IO が File::Constants をインクルードしているので、
これらの定数は File::LOCK_SH などとして参照可能です。
: LOCK_SH
共有ロック。複数のプロセスが同時にロックを共有できます。
システムによってはロック対象の... -
WIN32OLE
_ TYPE # helpfile -> String | nil (15207.0) -
オブジェクトに関連付けられたヘルプファイルのフルパス名。
...パス名。
ここで返されたヘルプファイルを表示するには、
WIN32OLE#ole_show_helpメソッドを呼び出します。
オブジェクトがヘルプファイルを持たない場合はnilを返します。
@return オブジェクトに関連付けられたヘルプファイ......イルが未定義の場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
puts tobj.helpfile # => C:\...\VBAXL9.CHM
WIN32OLE.ole_show_help tobj.helpfile, tobj.helpcontext
# 注)WIN32OLE.ole_show_help(tobj) の呼び出しが望ま......ルがインストールされてい
ない場合があることに注意してください。
また、返送値はOLEサーバの登録値をそのまま利用するため、Rubyのパス名形式
(ディレクトリ区切りは「/」)ではなく、Windowsのパス名形式(ディレク... -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (12444.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...は nil を返します。
@raise RuntimeError タスクを合成できなかった場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO.wri......te("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_file => []>
end
//}... -
Gem
:: Installer # formatted _ program _ filename(filename) -> String (12417.0) -
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
...
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
@param filename 実行ファイルのファイル名を指定します。... -
Rake
:: PackageTask # package _ files=(file _ list) (12414.0) -
パッケージに含むファイルリストを設定します。
...@param file_list ファイルリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_files # => []......package_task.package_files = FileList.new("test1.rb", "test2.rb")
package_task.package_files # => ["test1.rb", "test2.rb"]
end
//}...