Class: ObjectTable::Group

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

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 TableChild

#__group_cls__, #__static_view_cls__, #__table_cls__, #__view_cls__

Methods included from TableMethods

#==, #_apply_block, #_get_sort_index, #apply, #clone, #colnames, #group_by, #method_missing, #ncols, #nrows, #pop_column, #respond_to?, #set_column, #sort_by, #where

Methods included from Printable

#_format_rows, #_format_section, calc_column_widths, get_printable_column, #inspect

Constructor Details

#initialize(parent, keys, value) ⇒ Group

Returns a new instance of Group.



6
7
8
9
# File 'lib/object_table/group.rb', line 6

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.



4
5
6
# File 'lib/object_table/group.rb', line 4

def K
  @K
end