Sha256: 1d01d8bd5ed08701ff87495aa98ddae7d9027723c57532690f553042740f4b30
Contents?: true
Size: 375 Bytes
Versions: 58
Compression:
Stored size: 375 Bytes
Contents
class SnippetFinder class << self def find(id) find_map('find',id) end def find_by_name(name) find_map('find_by_name', name) end def finder_types [Snippet] end private def find_map(meth, *args) finder_types.find{|type| found = type.send(meth, *args) return found if found } end end end
Version data entries
58 entries across 58 versions & 2 rubygems