Class: YARD::Tags::DefaultTag

Inherits:
Tag
  • Object
show all
Defined in:
lib/yard/tags/default_tag.rb

Instance Attribute Summary collapse

Attributes inherited from Tag

#name, #object, #tag_name, #text, #types

Instance Method Summary collapse

Methods inherited from Tag

#explain_types, #type

Constructor Details

#initialize(tag_name, text, types = nil, name = nil, defaults = nil) ⇒ DefaultTag

Returns a new instance of DefaultTag.



7
8
9
10
# File 'lib/yard/tags/default_tag.rb', line 7

def initialize(tag_name, text, types = nil, name = nil, defaults = nil)
  super(tag_name, text, types, name)
  @defaults = defaults
end

Instance Attribute Details

#defaultsObject (readonly)

Returns the value of attribute defaults.



5
6
7
# File 'lib/yard/tags/default_tag.rb', line 5

def defaults
  @defaults
end