るりまサーチ

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

別のキーワード

  1. _builtin reverse_each
  2. array reverse_each
  3. ipaddr reverse
  4. enumerable reverse_each
  5. _builtin reverse

ライブラリ

クラス

検索結果

Module#append_features(module_or_class) -> self (24325.0)

モジュール(あるいはクラス)に self の機能を追加します。

...体であり、
include を Ruby で書くと以下のように定義できます。

//emlist[例][ruby]{
def include(*modules)
modules.reverse_each do |mod|
# append_features や included はプライベートメソッドなので
# 直接 mod.append_features(self) などとは書けな...
...
mod.__send__(:append_features, self)
mod.__send__(:included, self)
end
end
//}

@see Module#included...

ruby 1.6 feature (8304.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

...ruby 1.6 feature
r
uby version 1.6 は安定版です。この版での変更はバグ修正がメイン
になります。

((<stable-snapshot|URL:ftp://ftp.netlab.co.jp/pub/lang/ruby/stable-snapshot.tar.gz>)) は、日々更新される安定版の最新ソースです。

== 1.6.8 (2002-12-24) ->...
...401b1be4>
-
:3: wrong argument type nil (expected Match) (TypeError)
^^^^^ MatchData の間違い
=> ruby 1.6.7 (2002-04-04) [i586-linux]
#<MatchData:0x401b1c98>
nil

: 2002-03-25 ((<BasicSocket/BasicSocket.do_not_reverse_lookup>)...
...ar; include Foo; end
module Foo; include Bar; end

p Foo.ancestors

=> ruby 1.6.6 (2001-12-26) [i586-linux]
[Foo, Bar, Foo]

=> -:3:in `append_features': cyclic include detected (ArgumentError)
from -:3:in `include'
from -:3
r
uby 1.6.6 (2002-01-2...