Class: OasRails::YARD::ExampleTag

Inherits:
YARD::Tags::Tag
  • Object
show all
Defined in:
lib/oas_rails/yard/example_tag.rb

Direct Known Subclasses

RequestBodyExampleTag, ResponseExampleTag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag_name, text, content: {}) ⇒ ExampleTag

Returns a new instance of ExampleTag.



6
7
8
9
# File 'lib/oas_rails/yard/example_tag.rb', line 6

def initialize(tag_name, text, content: {})
  super(tag_name, text, nil, nil)
  @content = content
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



4
5
6
# File 'lib/oas_rails/yard/example_tag.rb', line 4

def content
  @content
end