Class: TimeScales::Parts::MonthOfQuarterClass
Instance Method Summary
collapse
#===, #name, #scale, #subdivision_name, #to_s, #to_time_scales_part
Instance Method Details
#&(time) ⇒ Object
138
139
140
141
|
# File 'lib/time_scales/parts.rb', line 138
def &(time)
month_offs = time.month - 1
( month_offs % 3 ) + 1
end
|
#component_mixin ⇒ Object
#default_for_unit? ⇒ Boolean
134
|
# File 'lib/time_scales/parts.rb', line 134
def default_for_unit? ; false ; end
|
#scheme_scoped_precision_mixin ⇒ Object
#scope ⇒ Object
133
|
# File 'lib/time_scales/parts.rb', line 133
def scope ; Units::Quarter ; end
|
#subdivision ⇒ Object
132
|
# File 'lib/time_scales/parts.rb', line 132
def subdivision ; Units::Month ; end
|
#symbol ⇒ Object
131
|
# File 'lib/time_scales/parts.rb', line 131
def symbol ; :month_of_quarter ; end
|