Class: Oinky::Internal::VariantSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count) ⇒ VariantSet

Returns a new instance of VariantSet.



219
220
221
# File 'lib/oinky.rb', line 219

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

Instance Attribute Details

#refsObject

Returns the value of attribute refs.



213
214
215
# File 'lib/oinky.rb', line 213

def refs
  @refs
end

Instance Method Details

#[](x) ⇒ Object



223
224
225
# File 'lib/oinky.rb', line 223

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

#countObject



215
216
217
# File 'lib/oinky.rb', line 215

def count
  @refs.count
end