Ray's playground

 

2009年11月5日

Recipe 1.7. Converting Between Strings and Symbols

摘要: To turn a symbol into a string, use Symbol#to_s, or Symbol#id2name, for which to_s is an alias.[代码]Output:a_symbol    AnotherSymbol    Yet another symbol!You usually reference a symbol by just typing ... 阅读全文

posted @ 2009-11-05 22:57 Ray Z 阅读(183) 评论(0) 推荐(0) 编辑

Writing and Mapping classes(Chapter 3 of NHibernate In Action)

摘要: Mapping class inheritanceA simple strategy for mapping classes to database tables might be “one table for every class.” This approachsounds simple, and it works well until you encounter in... 阅读全文

posted @ 2009-11-05 19:38 Ray Z 阅读(211) 评论(0) 推荐(0) 编辑

导航