From: Robert Klemme Date: 2008-10-24T19:58:47+09:00 Subject: Re: Bound macro in ruby 2008/10/24 Me Me : > I think it's a simple question but I couldn't find in docs. > Is there a macro already defined in ruby for returning the "bound" of a > value: > > ex: > > BOUND(1, 5, 10) => 5 > BOUND(10, 5, 100) => 5 > BOUND(1, 50, 10) => 10 First of all, there are no macros in Ruby. If anything you would be looking for a method (or function). How is your "bound" defined? Cheers robert -- remember.guy do |as, often| as.you_can - without end