Sha256: bd5acec64c8e97ca3d529e7f70fa988687625819a5a74230a2185a69973d5437

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

require_relative 'view_methods'
require_relative 'basic_grid'
require_relative 'masked_column'

class ObjectTable::StaticView
  include ObjectTable::ViewMethods
  attr_reader :indices

  def initialize(parent, indices)
    super()
    @parent = parent
    @indices = indices
    columns
  end

  def columns
    @columns ||= super
  end

  def add_column(name, *args)
    @columns[name] = super
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
object_table-0.2.4 lib/object_table/static_view.rb
object_table-0.2.3 lib/object_table/static_view.rb
object_table-0.2.2 lib/object_table/static_view.rb
object_table-0.2.0 lib/object_table/static_view.rb