Sha256: 32b969ee2e30670d9bf9519b81e088b1dd6a81de8a31d97520233412cc3228ca

Contents?: true

Size: 760 Bytes

Versions: 3

Compression:

Stored size: 760 Bytes

Contents

def init
  super
  sections :index, [:argument,
                    :example_request,
                    :request_field,
                    :example_response,
                    :response_field,
                    :header,
                    :response_code]
end

def request_field
  generic_tag :request_field
end

def response_field
  generic_tag :response_field
end

def argument
  generic_tag :argument, :no_types => false
end

def header
  generic_tag :header
end

def response_code
  generic_tag :response_code
end

def generic_tag(name, opts = {})
  return unless object.has_tag?(name)
  @no_names = true if opts[:no_names]
  @no_types = true if opts[:no_types]
  @name = name
  out = erb('generic_tag')
  @no_names, @no_types = nil, nil
  out
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
yard-rest-plugin-0.2.5 templates/rest/tags/setup.rb
yard-rest-plugin-0.2.4 templates/rest/tags/setup.rb
yard-web-plugin-0.1.2 templates/rest/tags/setup.rb