Class: Oinky::Internal::VariantSet
- Inherits:
-
FFI::MemoryPointer
- Object
- FFI::MemoryPointer
- Oinky::Internal::VariantSet
- 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) ⇒ VariantSet
constructor
A new instance of VariantSet.
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
#refs ⇒ Object
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 |
#count ⇒ Object
215 216 217 |
# File 'lib/oinky.rb', line 215 def count @refs.count end |