# -*- encoding : utf-8 -*- class Array def to_dao(*args, &block) Dao.to_dao(self, *args, &block) end def as_dao(*args, &block) Dao.as_dao(self, *args, &block) end end unless Object.new.respond_to?(:tap) def tap(value, &block) block.call(value) value end end