摘要:
http://stackoverflow.com/questions/998979/difference-between-and-in-rails/25617607#25617607 http://stackoverflow.com/questions/7996695/what-is-the-dif 阅读全文
摘要:
class Foo def initialize(&block) instance_eval(&block) if block_given? end end class Foo def initialize yield self if block_given? end end x = Foo.new 阅读全文