Method: Puppet::Pops::Types::TypeFactory.float_range

Defined in:
lib/puppet/pops/types/type_factory.rb

.float_range(from, to) ⇒ Object

Produces a Float range type



42
43
44
45
46
47
# File 'lib/puppet/pops/types/type_factory.rb', line 42

def self.float_range(from, to)
  # optimize eq with symbol (faster when it is left)
  from = Float(from) unless :default == from || from.nil?
  to = Float(to) unless :default == to || to.nil?
  PFloatType.new(from, to)
end