Module: Toji::Progress::MoromiProgress
- Includes:
- BaseProgress
- Defined in:
- lib/toji/progress/moromi_progress.rb
Instance Method Summary
collapse
#base_time, #day_offset, #days, #has_keys
Instance Method Details
#ab(coef, expects = []) ⇒ Object
43
44
45
|
# File 'lib/toji/progress/moromi_progress.rb', line 43
def ab(coef, expects=[])
Graph::Ab.new.coef(coef).actual(self).expects(expects)
end
|
#all_keys ⇒ Object
31
32
33
|
# File 'lib/toji/progress/moromi_progress.rb', line 31
def all_keys
MoromiState::KEYS
end
|
#bmd ⇒ Object
39
40
41
|
# File 'lib/toji/progress/moromi_progress.rb', line 39
def bmd
Graph::Bmd.new.actual(self)
end
|
#day_labels ⇒ Object
21
22
23
24
25
26
27
28
29
|
# File 'lib/toji/progress/moromi_progress.rb', line 21
def day_labels
_prefix = prefix_day_labels
if _prefix
_prefix + moromi_days.times.map{|i| i+2}.map(&:to_s)
else
super
end
end
|
#moromi_days ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/toji/progress/moromi_progress.rb', line 12
def moromi_days
_tome_day = moromi_tome_day
_days = self.days
if _tome_day && _tome_day<_days
_days - _tome_day + 1
end
end
|
#moromi_tome_day ⇒ Object
8
9
10
|
# File 'lib/toji/progress/moromi_progress.rb', line 8
def moromi_tome_day
prefix_day_labels&.length
end
|
#progress_note(name: nil, dash: :solid, enable_annotations: true) ⇒ Object
35
36
37
|
# File 'lib/toji/progress/moromi_progress.rb', line 35
def progress_note(name: nil, dash: :solid, enable_annotations: true)
Graph::ProgressNote.new(self, name: name, dash: dash, enable_annotations: enable_annotations)
end
|