Class: UsageMod::FloatArgumentPlugin

Inherits:
ArgumentParserPlugin show all
Defined in:
lib/Usage.rb

Instance Attribute Summary

Attributes inherited from ArgumentParserPlugin

#value

Instance Method Summary collapse

Methods inherited from ArgumentParserPlugin

#close

Constructor Details

#initialize(usage_ui, str) ⇒ FloatArgumentPlugin

Returns a new instance of FloatArgumentPlugin.



435
436
437
# File 'lib/Usage.rb', line 435

def initialize(usage_ui, str)
  @value = str.to_f
end