Class: Feriados::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/feriados/loader.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, calendar) ⇒ Loader

Returns a new instance of Loader.



3
4
5
6
# File 'lib/feriados/loader.rb', line 3

def initialize(file, calendar)
  @file = file
  @calendar = calendar
end

Instance Method Details

#loadObject



8
9
10
11
12
13
# File 'lib/feriados/loader.rb', line 8

def load
  load_day_of_month
  load_functions
  load_fix_weekdays
  load_fix_days
end