Class: Charty::ColumnAccessor

Inherits:
Object
  • Object
show all
Defined in:
lib/charty/table.rb

Instance Method Summary collapse

Constructor Details

#initialize(adapter) ⇒ ColumnAccessor

Returns a new instance of ColumnAccessor.



5
6
7
# File 'lib/charty/table.rb', line 5

def initialize(adapter)
  @adapter = adapter
end

Instance Method Details

#[](column_name) ⇒ Object



9
10
11
# File 'lib/charty/table.rb', line 9

def [](column_name)
  @adapter[nil, column_name]
end