Sha256: 2431183ca2b60ab00f80b9507749742733fb3613b481d282f8f59bde48e714c2
Contents?: true
Size: 300 Bytes
Versions: 10
Compression:
Stored size: 300 Bytes
Contents
module Clevic # These methods are common between SetDelegate and DistinctDelegate module SimplestDelegate def item_to_editor( item ) if item.is_a?( Array ) [ item.last, item.first ] else [ item, item ] end end def editor_to_item( data ) data.value end end end
Version data entries
10 entries across 10 versions & 1 rubygems