Class: RubyLint::Docstring::ParamTag
- Inherits:
-
Object
- Object
- RubyLint::Docstring::ParamTag
- Defined in:
- lib/ruby-lint/docstring/param_tag.rb
Overview
The ParamTag class contains information about YARD @param
tags such as
the types of the parameter.
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
-
#name ⇒ String
readonly
-
#types ⇒ Array
readonly
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ParamTag
constructor
A new instance of ParamTag.
Constructor Details
#initialize(options = {}) ⇒ ParamTag
Returns a new instance of ParamTag
22 23 24 25 26 |
# File 'lib/ruby-lint/docstring/param_tag.rb', line 22 def initialize( = {}) @name = [:name] @types = [:types] || [] @description = [:description] end |
Instance Attribute Details
#description ⇒ String (readonly)
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ruby-lint/docstring/param_tag.rb', line 16 class ParamTag attr_reader :name, :types, :description ## # @param [Hash] options # def initialize( = {}) @name = [:name] @types = [:types] || [] @description = [:description] end end |
#name ⇒ String (readonly)
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ruby-lint/docstring/param_tag.rb', line 16 class ParamTag attr_reader :name, :types, :description ## # @param [Hash] options # def initialize( = {}) @name = [:name] @types = [:types] || [] @description = [:description] end end |
#types ⇒ Array (readonly)
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ruby-lint/docstring/param_tag.rb', line 16 class ParamTag attr_reader :name, :types, :description ## # @param [Hash] options # def initialize( = {}) @name = [:name] @types = [:types] || [] @description = [:description] end end |