Class: Charty::ColumnAccessor
- Inherits:
-
Object
- Object
- Charty::ColumnAccessor
- Defined in:
- lib/charty/table.rb
Instance Method Summary collapse
- #[](column_name) ⇒ Object
-
#initialize(adapter) ⇒ ColumnAccessor
constructor
A new instance of ColumnAccessor.
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 |