Class: Collada::Parser::Controller

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

Direct Known Subclasses

Skin

Defined Under Namespace

Classes: Skin

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name) ⇒ Controller

Returns a new instance of Controller.



137
138
139
140
# File 'lib/collada/parser/controller.rb', line 137

def initialize(id, name)
	@id = id
	@name = name
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



142
143
144
# File 'lib/collada/parser/controller.rb', line 142

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



143
144
145
# File 'lib/collada/parser/controller.rb', line 143

def name
  @name
end

Class Method Details

.parse(doc, element) ⇒ Object



145
146
147
148
149
# File 'lib/collada/parser/controller.rb', line 145

def self.parse(doc, element)
	element.elements.each('skin') do |skin_element|
		return Skin.parse(doc, element, skin_element)
	end
end