るりまサーチ

最速Rubyリファレンスマニュアル検索!
247件ヒット [201-247件を表示] (0.098秒)

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 >>

Kernel#cp -> () (3025.0)

ファイルやディレクトリをコピーします。

...ファイルやディレクトリをコピーします。


ruby
-run -e cp -- [OPTION] SOURCE DEST

-p 可能であればファイルの属性を保持します。
-r 再帰的にコピーします。
-v 詳細表示

@see cp(1)...

Kernel#install -> () (3019.0)

ファイルをコピーし、その属性を設定します。

...ファイルをコピーし、その属性を設定します。


ruby
-run -e install -- [OPTION] SOURCE DEST

-p ファイルのアクセス時刻と修正時刻を保持します。
-m chmod と同じようにファイルのパーミッションを設定します。
-v...

Kernel#mv -> () (3019.0)

ファイルを移動します (ファイル名を変更します)。

...ファイルを移動します (ファイル名を変更します)。


ruby
-run -e mv -- [OPTION] SOURCE DEST

-v 詳細表示

@see mv(1)...

Method#inspect -> String (137.0)

self を読みやすい文字列として返します。

...self を読みやすい文字列として返します。

以下の形式の文字列を返します。

#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)

klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクト...
...します。

arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source
_location が nil の場合には付きません。

//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end

p Bar.new.method(:foo)...
...Bar(Foo)#foo() test.rb:2>
p Bar.new.method(:bar) # => #<Method: Bar#bar(a, b) test.rb:8>
//}

klass1 と klass2 が同じ場合は以下の形式になります。
#<Method: klass1#method() foo.rb:2> (形式2)

特異メソッドに対しては、
#<Method: obj.method() foo.rb...

Method#to_s -> String (137.0)

self を読みやすい文字列として返します。

...self を読みやすい文字列として返します。

以下の形式の文字列を返します。

#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)

klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクト...
...します。

arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source
_location が nil の場合には付きません。

//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end

p Bar.new.method(:foo)...
...Bar(Foo)#foo() test.rb:2>
p Bar.new.method(:bar) # => #<Method: Bar#bar(a, b) test.rb:8>
//}

klass1 と klass2 が同じ場合は以下の形式になります。
#<Method: klass1#method() foo.rb:2> (形式2)

特異メソッドに対しては、
#<Method: obj.method() foo.rb...

絞り込み条件を変える

<< < 1 2 3 >>