Class: Collada::Parser::VectorParameter
- Defined in:
- lib/collada/parser/support.rb
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Attributes inherited from Parameter
Instance Method Summary collapse
-
#initialize(name, type, size) ⇒ VectorParameter
constructor
A new instance of VectorParameter.
- #read(value) ⇒ Object
Methods inherited from Parameter
Constructor Details
#initialize(name, type, size) ⇒ VectorParameter
Returns a new instance of VectorParameter.
205 206 207 208 209 |
# File 'lib/collada/parser/support.rb', line 205 def initialize(name, type, size) super name, type @size = size end |
Instance Attribute Details
#size ⇒ Object (readonly)
Returns the value of attribute size.
211 212 213 |
# File 'lib/collada/parser/support.rb', line 211 def size @size end |
Instance Method Details
#read(value) ⇒ Object
213 214 215 |
# File 'lib/collada/parser/support.rb', line 213 def read(value) Vector[*value] end |