Class: Schmersion::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/schmersion/formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, options = {}) ⇒ Formatter

Returns a new instance of Formatter.



8
9
10
11
# File 'lib/schmersion/formatter.rb', line 8

def initialize(filename, options = {})
  @filename = filename
  @options = options
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



6
7
8
# File 'lib/schmersion/formatter.rb', line 6

def filename
  @filename
end

Instance Method Details

#generate(repo, version) ⇒ Object

Generate the output which should be included in the export. This should return a string which will also be displayed when doing dry-runs of a release. rubocop:disable Lint/UnusedMethodArgument



17
18
19
# File 'lib/schmersion/formatter.rb', line 17

def generate(repo, version)
  ''
end

#insert(part) ⇒ void

This method returns an undefined value.

Insert a given part into the given source file path

Parameters:

  • part (String)


26
27
# File 'lib/schmersion/formatter.rb', line 26

def insert(part)
end