lib/supa/commands/namespace.rb in supa-0.2.0 vs lib/supa/commands/namespace.rb in supa-0.2.1
- old
+ new
@@ -1,11 +1,15 @@
+require 'supa/command'
+
module Supa
module Commands
class Namespace < Supa::Command
def represent
- @tree[@name] = {}
+ tree[name] = {}
- Supa::Builder.new(@object, tree: @tree[@name], representer: @representer).instance_exec(&@block)
+ Supa::Builder.new(representer: representer, context: context, tree: tree[name]).instance_exec(&block)
end
end
end
end
+
+