Remove idempotent behavior of Zombie.create

* Also returns self now (Command Object)
This commit is contained in:
Markus Schirp 2012-08-29 13:38:40 +02:00
parent f976b7c579
commit fb29d3927d

View file

@ -1,13 +1,18 @@
module Zombie
# Setup zombie
#
# @return [self]
#
# @api private
#
def self.setup
return if defined?(@done)
files.each do |path|
path = "#{File.expand_path(path, root)}.rb"
ast = File.read(path).to_ast
zombify(ast, path)
ToSource.to_source(ast.body)
end
@done = true
self
end
# Return library root directory