Method: CVEList::YearDir#initialize

Defined in:
lib/cvelist/year_dir.rb

#initialize(path) ⇒ YearDir

Initializes the year dir.

Parameters:

  • path (String)

    The path to the year directory.



28
29
30
31
32
# File 'lib/cvelist/year_dir.rb', line 28

def initialize(path)
  super(path)

  @year = File.basename(@path).to_i
end