Class: Oinky::Internal::ColumnDefn::ColumnSet

Inherits:
FFI::MemoryPointer
  • Object
show all
Defined in:
lib/oinky.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count) ⇒ ColumnSet

Returns a new instance of ColumnSet.



359
360
361
# File 'lib/oinky.rb', line 359

def initialize(count)
  super(ColumnDefn, count)
end

Instance Attribute Details

#refsObject

Returns the value of attribute refs.



353
354
355
# File 'lib/oinky.rb', line 353

def refs
  @refs
end

Instance Method Details

#[](x) ⇒ Object



363
364
365
# File 'lib/oinky.rb', line 363

def [](x)
  ColumnDefn.new(super(x))
end

#countObject



355
356
357
# File 'lib/oinky.rb', line 355

def count
  @refs.count
end