1952件ヒット
[1-100件を表示]
(0.119秒)
別のキーワード
ライブラリ
- ビルトイン (1088)
- csv (36)
- erb (36)
- fiddle (12)
-
irb
/ cmd / load (36) - logger (12)
- mkmf (24)
-
net
/ http (96) - optparse (12)
- pathname (132)
- 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 (12)
- Binding (19)
- CSV (36)
- Class (12)
- Dir (23)
- ERB (36)
-
Fiddle
:: Function (12) - File (72)
-
File
:: Stat (348) -
Gem
:: Installer (12) - IO (382)
-
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 (132)
- 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) - ascend (12)
-
base
_ label (12) - birthtime (12)
- blksize (12)
- blocks (12)
-
body
_ stream (12) -
body
_ stream= (12) - call (12)
- chardev? (12)
- chmod (12)
- chown (24)
- chunk (12)
- cleanpath (12)
-
clear
_ exclude (12) - clone (12)
- close (12)
- closed? (12)
- count (12)
-
create
_ makefile (12) -
def
_ class (12) - descend (12)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- dirname (12)
- dup (12)
- each (69)
-
each
_ byte (12) -
each
_ codepoint (12) -
each
_ line (69) - egrep (12)
- eval (12)
-
excluded
_ from _ list? (12) -
executable
_ real? (12) - execute (36)
- existing (12)
- existing! (12)
- ext (12)
-
external
_ encoding (12) - fcntl (12)
- filename (48)
- filename= (12)
- fileno (23)
- finish (12)
- flock (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 (12) -
internal
_ encoding (12) -
is
_ a? (12) -
kind
_ of? (12) - label (12)
- load (36)
- mode (12)
- needed? (12)
- nlink (12)
-
package
_ files (12) -
package
_ files= (12) - parameters (12)
- path (36)
- pathmap (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)
- size (24)
- size? (12)
-
source
_ location (7) - split (12)
- sub! (12)
- superclass (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)
- 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| . . . } (33359.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (32113.0) -
self が表す命令シーケンスの絶対パスを返します。
...irb で実行した場合
iseq = 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, wor......ld"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # base _ label -> String (32113.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 hello......lo, world"
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::Instructio... -
RubyVM
:: InstructionSequence # label -> String (32113.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...rb で実行した場合
iseq = 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, wor......ld"
end
# irb
> iseq = RubyVM::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_la... -
RubyVM
:: InstructionSequence # path -> String (32113.0) -
self が表す命令シーケンスの相対パスを返します。
...irb で実行した場合
iseq = 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, wor......ld"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
ARGF
. class # file -> IO (21154.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
:: Stat # readable _ real? -> bool (15219.0) -
実ユーザ/実グループによって読み込み可能な時に真を返します。
...実ユーザ/実グループによって読み込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).readable_real? #=> true
//}... -
Rake
:: Application # rakefile -> String (15213.0) -
実際に使用されている Rakefile の名前を返します。
...実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}... -
File
# truncate(length) -> 0 (15119.0) -
ファイルのサイズを最大 length バイトにします。
...外
Errno::EXXX が発生します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX サイズの変更に失敗した場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "1234567890")
File.open("testfile", "a")......do |f|
f.truncate(5) # => 0
f.size # => 5
end
//}...