class Dox::DSL::Documentation
Attributes
_action[RW]
_group[RW]
_resource[RW]
subject[RW]
Public Class Methods
new(opts = {})
click to toggle source
# File lib/dox/dsl/documentation.rb, line 9 def initialize(opts = {}) self.subject = opts.fetch :subject end
Public Instance Methods
action(name, &block)
click to toggle source
# File lib/dox/dsl/documentation.rb, line 19 def action(name, &block) self._action = Action.new(name, &block) end
config()
click to toggle source
# File lib/dox/dsl/documentation.rb, line 29 def config {}.merge(_resource ? _resource.config : {}) .merge(_action ? _action.config : {}) .merge(_group ? _group.config : {}) end
group(name, &block)
click to toggle source
# File lib/dox/dsl/documentation.rb, line 23 def group(name, &block) self._group = ResourceGroup.new(name, &block) end
Also aliased as: x_tag
resource(name, &block)
click to toggle source
# File lib/dox/dsl/documentation.rb, line 13 def resource(name, &block) self._resource = Resource.new(name, &block) end
Also aliased as: tag