Class: Chingu::Surface

Inherits:
Object
  • Object
show all
Defined in:
lib/chingu/rect.rb

Instance Method Summary collapse

Instance Method Details

#make_rectObject

Return a Rect with the same width and height as the Surface, positioned at (0,0).



607
608
609
# File 'lib/chingu/rect.rb', line 607

def make_rect()
	return Rect.new(0,0,self.width,self.height)
end