Sha256: 7a38cc6fb45b3374001ab14e8ec75fb1344e5964efd62cba3e0cb471b72bb2bd
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
require 'forwardable' require_relative 'table_methods' require_relative 'table_child' module ObjectTable::ViewMethods extend Forwardable include ObjectTable::TableMethods include ObjectTable::TableChild def columns ObjectTable::BasicGrid[@parent.columns.map{|k, v| [k, ObjectTable::MaskedColumn.mask(v, indices)]}] end def add_column(name, *args) col = @parent.add_column(name, *args) ObjectTable::MaskedColumn.mask(col, indices) end def pop_column(name) @parent.pop_column(name) super if @columns end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
object_table-0.2.4 | lib/object_table/view_methods.rb |
object_table-0.2.3 | lib/object_table/view_methods.rb |
object_table-0.2.2 | lib/object_table/view_methods.rb |