Sha256: 3b8aeda6eb65081d2a43cf274101eeb632afea5f05e29c7955ee290569ccf0dc

Contents?: true

Size: 293 Bytes

Versions: 52

Compression:

Stored size: 293 Bytes

Contents

# A util module for facter containing helper methods
module Facter
  module Util
    module Values
      module_function

      def convert(value)
        value = value.to_s if value.is_a?(Symbol)
        value = value.downcase if value.is_a?(String)
        value
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
facter-1.7.6 lib/facter/util/values.rb
facter-1.7.5 lib/facter/util/values.rb
facter-1.7.5.rc2 lib/facter/util/values.rb
facter-1.7.5.rc1 lib/facter/util/values.rb
facter-1.7.4 lib/facter/util/values.rb
facter-1.7.4.rc1 lib/facter/util/values.rb
facter-1.7.3 lib/facter/util/values.rb
facter-1.7.3.rc1 lib/facter/util/values.rb
facter-1.7.2 lib/facter/util/values.rb
facter-1.7.2.rc1 lib/facter/util/values.rb
facter-1.7.1 lib/facter/util/values.rb
facter-1.7.1.rc1 lib/facter/util/values.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/facter-1.6.17/lib/facter/util/values.rb
facter-1.7.0 lib/facter/util/values.rb
facter-1.7.0.rc2 lib/facter/util/values.rb
facter-1.7.0.rc1 lib/facter/util/values.rb
facter-1.6.18 lib/facter/util/values.rb
facter-1.6.18.rc1 lib/facter/util/values.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/facter-1.6.17/lib/facter/util/values.rb
facter-1.6.17 lib/facter/util/values.rb