lib/supa/commands/namespace.rb in supa-0.1.4 vs lib/supa/commands/namespace.rb in supa-0.2.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(context: context, tree: tree[name]).instance_exec(&block)
+ Supa::Builder.new(@object, tree: @tree[@name], representer: @representer).instance_exec(&@block)
end
end
end
end
-
-