lib/arborist.rb in arborist-0.5.0 vs lib/arborist.rb in arborist-0.6.0

- old
+ new

@@ -12,11 +12,11 @@ module Arborist extend Loggability, Configurability # Package version - VERSION = '0.5.0' + VERSION = '0.6.0' # Version control revision REVISION = %q$Revision$ @@ -86,10 +86,10 @@ ### Add a constructor function to the Arborist namespace called +name+ ### with the specified +method_body+. def self::add_dsl_constructor( subclass, &method_body ) - name = subclass.name + name = subclass.name.dup if name name.sub!( /.*::/, '' ) self.log.debug "Adding factory method for %p: %p" % [ name, method_body ] singleton_class.instance_exec( name, method_body ) do |name, body|