2420件ヒット
[1-100件を表示]
(0.053秒)
別のキーワード
ライブラリ
- ビルトイン (1484)
- csv (36)
- erb (36)
- fiddle (12)
-
irb
/ cmd / load (36) - logger (12)
- mkmf (24)
-
net
/ http (96) - optparse (12)
- pathname (204)
- rake (300)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) - ripper (12)
-
ripper
/ filter (12) -
rubygems
/ installer (12) - un (48)
-
webrick
/ httprequest (12) - 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 (550)
-
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) - Logger (12)
- Method (26)
-
Net
:: HTTP (48) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) - Object (12)
- OptionParser (12)
- Pathname (204)
- 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 (48) - String (12)
-
WEBrick
:: HTTPRequest (12) -
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 (24)
- atime (36)
-
base
_ label (12) - basename (12)
- birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
-
body
_ stream (12) -
body
_ stream= (12) - call (12)
- chardev? (12)
- chmod (24)
- chown (24)
- chunk (12)
- cleanpath (12)
-
clear
_ exclude (12) - clone (24)
- close (24)
- closed? (12)
- count (12)
-
create
_ makefile (12) - ctime (36)
-
def
_ class (12) - descend (24)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- dirname (12)
- dup (24)
- each (72)
-
each
_ byte (24) -
each
_ codepoint (24) -
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)
- fdatasync (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) - parameters (12)
- path (36)
- pathmap (12)
- pipe? (12)
- pos (12)
- pos= (12)
- post (24)
- pread (8)
- puts (12)
- pwrite (8)
- query (12)
- rakefile (12)
- rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - read (12)
-
read
_ body (24) - readable? (12)
-
readable
_ real? (12) - readbyte (24)
- 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) - syswrite (12)
- tell (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ i (12) -
to
_ path (12) -
to
_ s (24) - touch (12)
- truncate (12)
- tty? (12)
- uid (12)
-
wait
_ writable (12) -
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (12)
- zero? (12)
検索結果
先頭5件
-
FileUtils
# ruby(*args) {|result , status| . . . } (27259.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (26013.0) -
self が表す命令シーケンスの絶対パスを返します。
...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # base _ label -> String (26013.0) -
self が表す命令シーケンスの基本ラベルを返します。
...ます。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hell......end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"
@see RubyVM::InstructionSequence#l... -
RubyVM
:: InstructionSequence # label -> String (26013.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
... RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"
@see RubyVM::InstructionSequence#base_label... -
RubyVM
:: InstructionSequence # path -> String (26013.0) -
self が表す命令シーケンスの相対パスを返します。
...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
ARGF
. class # file -> IO (18154.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が現在開いて... -
File
# lstat -> File :: Stat (9160.0) -
ファイルの状態を含む File::Stat オブジェクトを生成して返します。 シンボリックリンクに関してリンクそのものの情報を返します。 lstat(2) を実装していないシステムでは、IO#statと同じです。
...ファイルの状態を含む File::Stat オブジェクトを生成して返します。
シンボリックリンクに関してリンクそのものの情報を返します。
lstat(2) を実装していないシステムでは、IO#statと同じです。
@raise Errno::EXXX 失敗した場合......ose されている場合に発生します。
//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.lstat... -
File
# flock(operation) -> 0 | false (9157.0) -
ファイルをロックします。
...をロックします。
ロックを取得するまでブロックされます。
ロックの取得に成功した場合は 0 を返します。
File::LOCK_NB (ノンブロッキング) を指定すると、本来ならブロックされる場合に
ブロックされずに false を返すよう......eration に有効な定数は以下の通りです。定数は File::Constants で定義されていますが、
File クラスの親クラスの IO が File::Constants をインクルードしているので、
これらの定数は File::LOCK_SH などとして参照可能です。
: LOCK_SH
共......的なアンロック以外に、ファイルのcloseやRubyインタプリタの終了
(プロセスの終了)によっても自動的にロック状態は解除されます。
: LOCK_NB
ノンブロックモード。
File::LOCK_SH | File::LOCK_NB のように他の指定と or することで... -
File
:: Stat # file? -> bool (9126.0) -
通常ファイルの時に真を返します。
...通常ファイルの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).file? #=> true
//}...