356件ヒット
[1-100件を表示]
(0.153秒)
ライブラリ
- ビルトイン (48)
- matrix (10)
- rake (36)
-
rexml
/ document (144)
クラス
- Array (24)
- Matrix (5)
- Object (12)
-
REXML
:: Attribute (36) -
REXML
:: CData (12) -
REXML
:: Comment (12) -
REXML
:: DocType (12) -
REXML
:: Document (12) -
REXML
:: Element (12) -
REXML
:: Instruction (12) -
REXML
:: Parent (12) -
REXML
:: Text (12) -
REXML
:: XMLDecl (12) - Vector (5)
モジュール
-
Rake
:: Cloneable (24)
オブジェクト
- ENV (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Cloneable (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
deep
_ clone (12) - dup (24)
-
irb
/ completion (12) - new (24)
-
rb
_ copy _ generic _ ivar (12) -
rb
_ mod _ clone (12) -
rb
_ obj _ clone (12) -
rb
_ singleton _ class _ clone (12) - クラス/メソッドの定義 (12)
検索結果
先頭5件
-
VALUE rb
_ mod _ clone(VALUE mod) (32216.0) -
モジュール mod を clone して返します。
...モジュール mod を clone して返します。... -
VALUE rb
_ obj _ clone(VALUE obj) (32216.0) -
Object#clone の実体です。
...Object#clone の実体です。... -
VALUE rb
_ singleton _ class _ clone(VALUE klass) (32216.0) -
特異クラス klass を clone して返します。 klass が特異クラスでないときはただ klass を返します。
...特異クラス klass を clone して返します。
klass が特異クラスでないときはただ klass を返します。... -
void rb
_ copy _ generic _ ivar(VALUE clone , VALUE obj) (26200.0) -
-
Rake
:: Cloneable # clone -> object (24131.0) -
自身を複製します。
...されています。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
clone = file_list.clone
clone # => ["a.c", "b.c"]
clone.exclude("a.c")
clone == file_list # => false
end
/... -
Array
# clone -> Array (21207.0) -
レシーバと同じ内容を持つ新しい配列を返します。
...レシーバと同じ内容を持つ新しい配列を返します。
clone は frozen singleton-class の情報も含めてコピーしますが、
dup は内容と tainted だけをコピーします。
またどちらのメソッドも要素それ自体のコピーはしません。
つまり......ているオブジェクトが変わらない「浅い(shallow)」コピーを行います。
//emlist[例][ruby]{
ary = ['string']
p ary #=> ["string"]
copy = ary.dup
p copy #=> ["string"]
ary[0][0...3] = ''
p ary #=> ["ing"]
p copy #=> ["ing"]
//}......レシーバと同じ内容を持つ新しい配列を返します。
clone は frozen singleton-class の情報も含めてコピーしますが、
dup は内容だけをコピーします。
またどちらのメソッドも要素それ自体のコピーはしません。
つまり参照して......いるオブジェクトが変わらない「浅い(shallow)」コピーを行います。
//emlist[例][ruby]{
ary = ['string']
p ary #=> ["string"]
copy = ary.dup
p copy #=> ["string"]
ary[0][0...3] = ''
p ary #=> ["ing"]
p copy #=> ["ing"]
//}... -
Matrix
# clone -> Matrix (21201.0) -
自分自身のコピーを返します。
自分自身のコピーを返します。 -
REXML
:: Attribute # clone -> REXML :: Element (21201.0) -
self を複製し返します。
self を複製し返します。 -
REXML
:: CData # clone -> REXML :: CData (21201.0) -
self を複製して返します。
self を複製して返します。
親ノードの情報は複製されません。