Sha256: 9da4810263b50b7526464ddfdd9e5ac8c0fcd5c128be116594f3dede933cd9e7
Contents?: true
Size: 982 Bytes
Versions: 9
Compression:
Stored size: 982 Bytes
Contents
def init super sections.push(:index,[:argument, :optional_argument, :key_for, :value_for, :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 optional_argument generic_tag :optional_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
9 entries across 9 versions & 1 rubygems