Sha256: 392341bcb11e97187bd88e2a3a4afa4d53b8babc6bd9b70219e5a577f4a1ea97
Contents?: true
Size: 304 Bytes
Versions: 3
Compression:
Stored size: 304 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clevic-0.13.0.b9 | lib/clevic/qt/simplest_delegate.rb |
clevic-0.13.0.b6 | lib/clevic/qt/simplest_delegate.rb |
clevic-0.13.0.b5 | lib/clevic/qt/simplest_delegate.rb |