152件ヒット
[101-152件を表示]
(0.098秒)
ライブラリ
- ビルトイン (74)
- shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (30)
クラス
-
ARGF
. class (12) - Method (7)
- Proc (7)
-
RubyVM
:: InstructionSequence (48) - Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30)
キーワード
-
absolute
_ path (12) -
base
_ label (12) - cat (18)
- echo (18)
- glob (18)
- label (12)
- path (12)
- tee (18)
-
to
_ io (12)
検索結果
先頭5件
-
Shell
:: Filter # glob(pattern) -> Shell :: Filter (31.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}
@see Dir.[]... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (19.0) -
self が表す命令シーケンスの絶対パスを返します。
...tructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute... -
RubyVM
:: InstructionSequence # base _ label -> String (19.0) -
self が表す命令シーケンスの基本ラベルを返します。
...ctionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_... -
RubyVM
:: InstructionSequence # label -> String (19.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...ructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label #... -
RubyVM
:: InstructionSequence # path -> String (19.0) -
self が表す命令シーケンスの相対パスを返します。
...tructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "me...