Class: Collada::Parser::VectorParameter

Inherits:
Parameter
  • Object
show all
Defined in:
lib/collada/parser/support.rb

Instance Attribute Summary collapse

Attributes inherited from Parameter

#name, #type

Instance Method Summary collapse

Methods inherited from Parameter

parse

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

#sizeObject (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