Class: GL::Registry::Extension
- Inherits:
-
FeatureProvider
- Object
- Token
- FeatureProvider
- GL::Registry::Extension
- Defined in:
- lib/opengl/registry/extension.rb
Overview
Describes an OpenGL extension.
Instance Attribute Summary collapse
-
#supported ⇒ Array<Symbol>
readonly
An array of supported APIs this extension is associated with.
Attributes inherited from FeatureProvider
Attributes inherited from Token
Instance Method Summary collapse
-
#initialize(node) ⇒ Extension
constructor
Creates a new instance of the Extension class.
Methods inherited from Token
Constructor Details
#initialize(node) ⇒ Extension
Creates a new instance of the GL::Registry::Extension class.
16 17 18 19 20 |
# File 'lib/opengl/registry/extension.rb', line 16 def initialize(node) super(node) supported = node[Words::SUPPORTED] @supported = supported ? supported.split('|').map(&:to_sym) : Array.new end |
Instance Attribute Details
#supported ⇒ Array<Symbol> (readonly)
Returns an array of supported APIs this extension is associated with.
10 11 12 |
# File 'lib/opengl/registry/extension.rb', line 10 def supported @supported end |