Module: Acclaim::Option::Type::Rational
- Defined in:
- lib/acclaim/option/type/rational.rb
Overview
Handles rational numbers given as arguments in the command line.
Class Method Summary collapse
-
.handle(str) ⇒ Object
Simply returns
str.to_r
.
Class Method Details
.handle(str) ⇒ Object
Simply returns str.to_r
.
14 15 16 |
# File 'lib/acclaim/option/type/rational.rb', line 14 def self.handle(str) str.to_r end |