Class: ObjectTable::Group

Inherits:
StaticView show all
Defined in:
lib/object_table/grouping.rb

Constant Summary

Constants included from TableMethods

TableMethods::Util

Instance Attribute Summary collapse

Attributes inherited from StaticView

#indices

Attributes included from TableMethods

#R

Instance Method Summary collapse

Methods inherited from StaticView

#add_column, #columns, #get_column

Methods included from ViewMethods

#add_column, #columns, #get_column, #nrows, #pop_column

Methods included from TableMethods

#==, #_get_sort_index, #apply, #clone, #each_row, #group_by, #method_missing, #ncols, #nrows, #respond_to?, #set_column, #sort_by, #where

Methods included from Stacking

process_stackable_grid, #stack, stack_segments

Methods included from Joining

copy_column, #join

Methods included from Printing

calc_column_widths, format_column, format_rows, format_section, #inspect, split_column_lines

Constructor Details

#initialize(parent, keys, value) ⇒ Group

Returns a new instance of Group.



9
10
11
12
# File 'lib/object_table/grouping.rb', line 9

def initialize(parent, keys, value)
  super(parent, value)
  @K = keys
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ObjectTable::TableMethods

Instance Attribute Details

#KObject (readonly)

Returns the value of attribute K.



8
9
10
# File 'lib/object_table/grouping.rb', line 8

def K
  @K
end