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.


551
552
553
554
# File 'lib/datagrid/columns.rb', line 551

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


556
557
558
# File 'lib/datagrid/columns.rb', line 556

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