Class: Semmy::DocTags::UpdateSinceTags

Inherits:
Struct
  • Object
show all
Defined in:
lib/semmy/doc_tags.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#placeholderObject

Returns the value of attribute placeholder

Returns:

  • (Object)

    the current value of placeholder



3
4
5
# File 'lib/semmy/doc_tags.rb', line 3

def placeholder
  @placeholder
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of 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