Class: Datagrid::Columns::DataRow

Inherits:
Object
  • Object
show all
Defined in:
lib/datagrid/columns.rb

Overview

InstanceMethods

Instance Method Summary collapse

Constructor Details

#initialize(grid, model) ⇒ DataRow

Returns a new instance of DataRow.



559
560
561
562
# File 'lib/datagrid/columns.rb', line 559

def initialize(grid, model)
  @grid = grid
  @model = model
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &blk) ⇒ Object



564
565
566
# File 'lib/datagrid/columns.rb', line 564

def method_missing(meth, *args, &blk)
  @grid.data_value(meth, @model)
end