Class: Rays::Image

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/rays/image.rb

Instance Method Summary collapse

Instance Method Details

#boundsObject



23
24
25
# File 'lib/rays/image.rb', line 23

def bounds()
  Bounds.new 0, 0, width, height
end

#paint(&block) ⇒ Object



14
15
16
17
# File 'lib/rays/image.rb', line 14

def paint(&block)
  painter.paint self, &block
  self
end

#sizeObject



19
20
21
# File 'lib/rays/image.rb', line 19

def size()
  return width, height
end