Method: Pubid::Core::Supplement#initialize

Defined in:
lib/pubid/core/supplement.rb

#initialize(number:, year: nil) ⇒ Supplement

Creates new supplement with provided update number and optional year

Parameters:

  • number (Integer)
  • year (Integer) (defaults to: nil)


9
10
11
# File 'lib/pubid/core/supplement.rb', line 9

def initialize(number:, year: nil)
  @number, @year = number&.to_i, year&.to_i
end