Class: Sculd::Manager

Inherits:
Object
  • Object
show all
Defined in:
lib/sculd/manager.rb

Defined Under Namespace

Classes: LoadError

Constant Summary collapse

WEEKDAYS =

WEEKDAYS = [ “日”, “月”, “火”, “水”, “木”, “金”, “土” ]

[ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ]

Instance Method Summary collapse

Constructor Details

#initialize(dir, io = $stdout) ⇒ Manager

Returns a new instance of Manager.



21
22
23
24
25
26
27
# File 'lib/sculd/manager.rb', line 21

def initialize(dir, io = $stdout)
  @source_dir = dir
  @plans = []
  Dir.glob("#{@source_dir}/*").each do |file|
    load_file(file, io)
  end
end

Instance Method Details

#show(num_event, num_task, io = $stdout) ⇒ Object



29
30
31
32
# File 'lib/sculd/manager.rb', line 29

def show(num_event, num_task, io = $stdout)
  show_events(num_event)
  show_tasks(num_task)
end