summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parameter.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-12 17:53:45 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-12 17:53:45 +0000
commit4092a7802aa05dcc456a31d51bf2d8e3a42cd503 (patch)
treee5380a90b114b9ff5e4d24a9a31ea740686f99b5 /lib/puppet/parameter.rb
parentc5782dfb9aa6ecfab045d348a7d07e38bcb4a8e2 (diff)
downloadpuppet-4092a7802aa05dcc456a31d51bf2d8e3a42cd503.tar.gz
puppet-4092a7802aa05dcc456a31d51bf2d8e3a42cd503.tar.xz
puppet-4092a7802aa05dcc456a31d51bf2d8e3a42cd503.zip
Fixed a couple of warnings, fixed a critical bug having to do with case statements (where there is only one listed option), and did a couple of other cleanups.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@814 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parameter.rb')
-rw-r--r--lib/puppet/parameter.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/puppet/parameter.rb b/lib/puppet/parameter.rb
index d2656b766..9d6a8504c 100644
--- a/lib/puppet/parameter.rb
+++ b/lib/puppet/parameter.rb
@@ -110,7 +110,7 @@ module Puppet
# And then define one of these proxies for each method in our
# ParamHandler class.
- proxymethods("required?", "default", "isnamevar?")
+ proxymethods("required?", "isnamevar?")
attr_accessor :parent
@@ -172,10 +172,6 @@ module Puppet
@value = value
end
- def to_s
- "%s => %s" % [self.class.name, self.value]
- end
-
def inspect
s = "Parameter(%s = %s" % [self.name, self.value || "nil"]
if defined? @parent