Remove idempotent behavior of Zombie.create
* Also returns self now (Command Object)
This commit is contained in:
parent
f976b7c579
commit
fb29d3927d
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue