るりまサーチ

最速Rubyリファレンスマニュアル検索!
808件ヒット [1-100件を表示] (0.035秒)
トップページ > クエリ:*[x] > クエリ:cat[x]

別のキーワード

  1. _builtin *
  2. matrix *
  3. array *
  4. vector *
  5. bigdecimal *

モジュール

検索結果

<< 1 2 3 ... > >>

Shell#cat(*files) -> Shell::Filter (18213.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

....

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
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) |...

Shell::CommandProcessor#cat(*files) -> Shell::Filter (18213.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

....

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
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) |...

Shell::Filter#cat(*files) -> Shell::Filter (18213.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

....

@param files シェルコマンド cat に与えるファイル名を文字列で指定します。

動作例
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) |...

Shell#concat(*jobs) -> Shell::Concat (6300.0)

@todo

@todo

Shell::CommandProcessor#concat(*jobs) -> Shell::Concat (6300.0)

@todo

@todo

絞り込み条件を変える

Shell::Filter#concat(*jobs) -> Shell::Concat (6300.0)

@todo

@todo

Array#concat(*other_arrays) -> self (6200.0)

other_arrays の要素を自身の末尾に破壊的に連結します。

...][ruby]{
[ "a", "b" ].concat( ["c", "d"] ) #=> [ "a", "b", "c", "d" ]
[ "a" ].concat( ["b"], ["c", "d"] ) #=> [ "a", "b", "c", "d" ]
[ "a" ].concat #=> [ "a" ]

a = [ 1, 2, 3 ]
a.concat( [ 4, 5 ] )
a #=> [ 1, 2, 3, 4, 5 ]

a = [ 1, 2 ]
a.concat(a, a)...

Module#deprecate_constant(*name) -> self (6200.0)

name で指定した定数を deprecate に設定します。 deprecate に設定した定数を参照すると警告メッセージが表示されます。

...name で指定した定数を deprecate に設定します。
deprecate に設定した定数を参照すると警告メッセージが表示されます。

Ruby 2.7.2 から Warning[:deprecated] のデフォルト値が false に変更になったため、
デフォルトでは警告が表示さ...
...参照)で、
「-w」か「-W2」などを指定するか、実行中に「Warning[:deprecated] = true」で
変更すると表示されるようになります。

「$VERBOSE = true」は「Warning[:deprecated]」に影響しないため、
表示されるかどうかは変わりません。

@pa...
...い定数を指定した場合に発生します。

@return self を返します。

//emlist[例][ruby]{
FOO = 123
Object.deprecate_constant(:FOO) # => Object

FOO
# warning: constant ::FOO is deprecated
# => 123

Object.deprecate_constant(:BAR)
# NameError: constant Object::BAR not defined
//}...

VALUE rb_catch(const char *tag, VALUE (*proc)(), VALUE data) (6200.0)

catch と同等の動作を実行します。

...
cat
ch と同等の動作を実行します。

まず proc に、yield された値と data を渡して実行します。
その途中で tag が throw されたら rb_catch 全体を終了します。

throw が発生した場合はその値を返します。
throw が発生しなかったとき...
...oo_catch(VALUE obj)
{
return rb_catch("footag", foo_yield, INT2FIX(2));
}

static VALUE
foo_abort(VALUE obj)
{
return rb_throw("footag", Qnil);
}

void
Init_foo(void)
{
VALUE Foo = rb_define_class("Foo", rb_cObject);
rb_define_method(Foo, "catch", foo_catch,...

VALUE rb_str_cat(VALUE str, const char *ptr, long len) (6200.0)

文字列 str に、長さ len (NUL 含まず)の C の文字列 ptr を破壊的に連結します。

文字列 str に、長さ len (NUL 含まず)の C の文字列
ptr を破壊的に連結します。

絞り込み条件を変える

VALUE rb_str_cat2(VALUE str, const char *ptr) (6200.0)

文字列 str に C の文字列 ptr を破壊的に 連結します。ptr はヌル終端を仮定しています。

文字列 str に C の文字列 ptr を破壊的に
連結します。ptr はヌル終端を仮定しています。

static NODE * arg_concat(NODE *node1, NODE *node2) (6200.0)

<< 1 2 3 ... > >>