summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-22 23:34:40 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-22 23:34:40 +0000
commit4151fd59ef6490c875140a874c0a13c5d3f311aa (patch)
treeceb265c6fdc52fa46889737263d2d5d8c3819a41 /lib/puppet/util
parent1b2ee4bb9d9fef44bdf8217f45d6893b7609a432 (diff)
downloadpuppet-4151fd59ef6490c875140a874c0a13c5d3f311aa.tar.gz
puppet-4151fd59ef6490c875140a874c0a13c5d3f311aa.tar.xz
puppet-4151fd59ef6490c875140a874c0a13c5d3f311aa.zip
Committing definition inheritance. I have not yet written tests yet, but my last commit pretty seriously broke some things without me realizing it, so I wanted to get this in.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1484 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/util')
-rw-r--r--lib/puppet/util/metaid.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/util/metaid.rb b/lib/puppet/util/metaid.rb
index b2b8a0c43..7054989db 100644
--- a/lib/puppet/util/metaid.rb
+++ b/lib/puppet/util/metaid.rb
@@ -1,15 +1,15 @@
module Puppet::Util::MetaID
# The hidden singleton lurks behind everyone
def metaclass; class << self; self; end; end
- def meta_eval &blk; metaclass.instance_eval &blk; end
+ def meta_eval(&blk); metaclass.instance_eval(&blk); end
# Adds methods to a metaclass
- def meta_def name, &blk
+ def meta_def(name, &blk)
meta_eval { define_method name, &blk }
end
# Defines an instance method within a class
- def class_def name, &blk
+ def class_def(name, &blk)
class_eval { define_method name, &blk }
end
end