lib/supa/commands/namespace.rb in supa-0.2.3 vs lib/supa/commands/namespace.rb in supa-0.3.0

- old
+ new

@@ -1,15 +1,11 @@ -require 'supa/command' - module Supa module Commands class Namespace < Supa::Command def represent - tree[name] = {} + @tree[@name] = {} - Supa::Builder.new(representer: representer, context: context, tree: tree[name]).instance_exec(&block) + Supa::Builder.new(@subject, representer: @representer, tree: @tree[@name]).instance_exec(&@block) end end end end - -