Sha256: 18d8b86e705584a30b1e07cf57c3ae014fd04a30c84833f7754b156e1c17e1fa
Contents?: true
Size: 387 Bytes
Versions: 16
Compression:
Stored size: 387 Bytes
Contents
module Csb class Col attr_reader :name def initialize(name, value = nil, &block) @name = name @value = block ? block : value end def value_by_item(item) case value when ::Symbol item.public_send(value) when ::Proc value.call(item) else value end end private attr_reader :value end end
Version data entries
16 entries across 16 versions & 1 rubygems