lib/dox/dsl/documentation.rb in dox-1.3.0 vs lib/dox/dsl/documentation.rb in dox-2.0.0.beta1

- old
+ new

@@ -12,16 +12,20 @@ def resource(name, &block) self._resource = Resource.new(name, &block) end + alias tag resource + def action(name, &block) self._action = Action.new(name, &block) end def group(name, &block) self._group = ResourceGroup.new(name, &block) end + + alias x_tag group def config {}.merge(_resource ? _resource.config : {}) .merge(_action ? _action.config : {}) .merge(_group ? _group.config : {})