Class: Semmy::DocTags::UpdateSinceTags
- Inherits:
-
Struct
- Object
- Struct
- Semmy::DocTags::UpdateSinceTags
- Defined in:
- lib/semmy/doc_tags.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
Returns the value of attribute placeholder.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#placeholder ⇒ Object
Returns the value of attribute placeholder
3 4 5 |
# File 'lib/semmy/doc_tags.rb', line 3 def placeholder @placeholder end |
#version ⇒ Object
Returns the value of attribute version
3 4 5 |
# File 'lib/semmy/doc_tags.rb', line 3 def version @version end |
Instance Method Details
#call(contents) ⇒ Object
4 5 6 7 |
# File 'lib/semmy/doc_tags.rb', line 4 def call(contents) contents.gsub("@since #{placeholder}", "@since #{VersionString.minor_only(version)}") end |