Method: Rsssf::Utils#year_from_file

Defined in:
lib/rsssf/utils.rb

#year_from_file(path) ⇒ Object

move to Page - why? why not?



8
9
10
11
12
# File 'lib/rsssf/utils.rb', line 8

def year_from_file( path )
  extname  = File.extname( path )
  basename = File.basename( path, extname )  ## e.g. duit92.txt or duit92.html => duit92
  year_from_name( basename )
end