Sha256: 9a7af7a32e4ab963d052ceaaab1ceec48938de2b148aa87fc0c18735f54845c2
Contents?: true
Size: 542 Bytes
Versions: 56
Compression:
Stored size: 542 Bytes
Contents
module Effective class DatatableColumn attr_accessor :attributes delegate :[], :[]=, to: :attributes def initialize(attributes) @attributes = attributes end def to_s self[:name] end def aggregate(&block) @attributes[:aggregate] = block; self end def format(&block) @attributes[:format] = block; self end def search(&block) @attributes[:search_method] = block; self end def sort(&block) @attributes[:sort_method] = block; self end end end
Version data entries
56 entries across 56 versions & 1 rubygems