class CTioga2::MetaBuilder::Types::FloatRangeParameter
A Float Range.
Constants
- RANGE_RE
Public Instance Methods
string_to_type_internal(str)
click to toggle source
# File lib/ctioga2/metabuilder/types/numbers.rb, line 58 def string_to_type_internal(str) raise IncorrectInput, "'#{str}' is not a valid range" unless str =~ RANGE_RE s,e = Float($1), Float($2) return Range.new(s,e) end
type_to_string_internal(value)
click to toggle source
# File lib/ctioga2/metabuilder/types/numbers.rb, line 65 def type_to_string_internal(value) return "#{value.first.to_s}:#{value.last.to_s}" end