Class: TimeScales::Parts::QuarterOfYearClass
Instance Method Summary
collapse
#===, #name, #scale, #subdivision_name, #to_s, #to_time_scales_part
Instance Method Details
#&(time) ⇒ Object
101
102
103
104
|
# File 'lib/time_scales/parts.rb', line 101
def &(time)
month_offs = time.month - 1
( month_offs / 3 ) + 1
end
|
#component_mixin ⇒ Object
#default_for_unit? ⇒ Boolean
97
|
# File 'lib/time_scales/parts.rb', line 97
def default_for_unit? ; true ; end
|
#scheme_scoped_precision_mixin ⇒ Object
#scope ⇒ Object
96
|
# File 'lib/time_scales/parts.rb', line 96
def scope ; Units::Year ; end
|
#subdivision ⇒ Object
95
|
# File 'lib/time_scales/parts.rb', line 95
def subdivision ; Units::Quarter ; end
|
#symbol ⇒ Object
94
|
# File 'lib/time_scales/parts.rb', line 94
def symbol ; :quarter_of_year ; end
|