Sha256: 55ecccd1824be21a5df40859c50c6a03675fb1ef243a85e84364f1ec7e44b675

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

class CCNode

  alias_method :add_child, :addChild

  def << (node)

    self.addChild(node)
  end

  def self.inherited(base)

    base.send(:include, Joybox)
  end

  #TODO: Revisar el nombre de este metodo
  def add_childs(*nodes)

    nodes.each do |node|

      self.addChild(node)

    end

  end 

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
joybox-1.0.0 motion/joybox/core/node.rb
joybox-0.0.6 motion/joybox/core/node.rb
joybox-0.0.5 lib/joybox/cocos2d/core/node.rb
joybox-0.0.4 lib/joybox/cocos2d/core/node.rb
joybox-0.0.3 lib/joybox/cocos2d/core/node.rb