summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb
index 2f7b57afc..84f0b93d0 100644
--- a/lib/puppet/type.rb
+++ b/lib/puppet/type.rb
@@ -590,6 +590,10 @@ class Type
rethash
end
+ def type
+ self.class.name
+ end
+
# Return a specific value for an attribute.
def value(name)
name = attr_alias(name)