体验新版 GitCode,发现更多精彩内容 >>
add a predicate method so that we can avoid is_a? calls on the resource object.