Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_rectRay::Rect

Returns Converts a hash into a rect.

Returns:

  • (Ray::Rect)

    Converts a hash into a rect.



113
114
115
# File 'lib/ray/rect.rb', line 113

def to_rect
  Ray::Rect.new(self)
end