On Wed, Feb 22, 2017 at 9:28 AM, Samuel Williams
<space.ship.traveller / gmail.com> wrote:
> I like to use Float, Integer and String to typecast data from user. It
> raises an exception if the value was invalid for some reason.

if you like exceptions, then you also like rescuing.

you may start with the shorter modifier form of rescuing,
eg,

result = Integer foo rescue bar

kind regards
--botp

Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>