DataMapperのResourceの派生クラスを列挙するには、以下のようにします。

   1  DataMapper::Resource.descendants
   2  => #<Set: {User, Event, Merb::DataMapperSessionStore, Comment}>

簡単ですね。

posted by Png genki on Sun 11 Jan 2009 at 16:55 with 1 comment

Comments:

Png maiha over 15 years ago.

nice!

or Preview
Social Bookmarks
  • Delicious
  • B_entry1204
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ