lib/gamebox/lib/rect.rb
# True if the given Rect is totally within the caller. Borders may
# overlap.
True if the given Rect is totally within the caller. Borders may
overlap.
True if the given Rect is totally within the caller . Borders may overlap .
def contain?(rect)
    nself = self
    rect = Rect.new_from_object(rect)!
    return (nself.left <= rect.left and rect.right <= nself.right and
          nself.top <= rect.top and rect.bottom <= nself.bottom)
  end
def contain? ( rect ) nself = self rect = Rect . new_from_object ( rect ) return ( nself . left <= rect . left and rect . right <= nself . right and nself . top <= rect . top and rect . bottom <= nself . bottom ) end
True if the given Rect is totally within the caller.
True if the given Rect is totally within the caller .
#.normalize #.normalize!
rect
<not_specific>