Class: Oinky::Internal::ColumnDefn::ColumnSet
- Inherits:
-
FFI::MemoryPointer
- Object
- FFI::MemoryPointer
- Oinky::Internal::ColumnDefn::ColumnSet
- Defined in:
- lib/oinky.rb
Instance Attribute Summary collapse
-
#refs ⇒ Object
Returns the value of attribute refs.
Instance Method Summary collapse
- #[](x) ⇒ Object
- #count ⇒ Object
-
#initialize(count) ⇒ ColumnSet
constructor
A new instance of ColumnSet.
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
#refs ⇒ Object
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 |
#count ⇒ Object
355 356 357 |
# File 'lib/oinky.rb', line 355 def count @refs.count end |