Module: Acclaim::Option::Type::Float

Defined in:
lib/acclaim/option/type/float.rb

Overview

Handles floating point numbers given as arguments in the command line.

Since:

  • 0.0.1

Class Method Summary collapse

Class Method Details

.handle(str) ⇒ Object

Simply returns str.to_f.

Since:

  • 0.0.1



11
12
13
# File 'lib/acclaim/option/type/float.rb', line 11

def self.handle(str)
  str.to_f
end