Class: Ruby2D::Entity

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby2d/entity.rb

Instance Method Summary collapse

Instance Method Details

#addObject

Add the entity to the window



7
8
9
# File 'lib/ruby2d/entity.rb', line 7

def add
  Window.add(self)
end

#removeObject

Remove the entity from the window



12
13
14
# File 'lib/ruby2d/entity.rb', line 12

def remove
  Window.remove(self)
end