#!/usr/bin/env rubyclass Area def Area.rect( length, width, units="inches" ) area = length*width printf( "The area of this rectangle is %.2f %s.", area, units ) sprintf( "%.2f", area ) endendArea.rect( 12.5, 16 )