Class: Sculd::Manager
- Inherits:
-
Object
- Object
- Sculd::Manager
- 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
-
#initialize(dir, io = $stdout) ⇒ Manager
constructor
A new instance of Manager.
- #show(num_event, num_task, io = $stdout) ⇒ Object
Constructor Details
#initialize(dir, io = $stdout) ⇒ 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 |