Permalink
Browse files

Converted Facter::Util::Values

  • Loading branch information...
1 parent cec9ce9 commit 313892452f990bfdc13bb1567eae908da5614f1b @cosimo committed Nov 21, 2010
Showing with 22 additions and 14 deletions.
  1. +22 −0 lib/Facter/Util/Values.pm
  2. +0 −14 lib/Facter/Util/values.rb
View
@@ -0,0 +1,22 @@
+=begin pod
+
+=head1 NAME
+
+Facter::Util::Values
+
+=head1 DESCRIPTION
+
+A util module for facter containing helper methods
+
+=end pod
+
+module Facter::Util::Values {
+
+ sub convert ($value) {
+ # value = value.to_s if value.is_a?(Symbol)
+ # value = value.downcase if value.is_a?(String)
+ $value.Str.lc;
+ }
+
+}
+
View
@@ -1,14 +0,0 @@
-# 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

0 comments on commit 3138924

Please sign in to comment.