class TimeScales::Parts::MonthOfQuarterClass
Public Instance Methods
&(time)
click to toggle source
# File lib/time_scales/parts.rb, line 138 def &(time) month_offs = time.month - 1 ( month_offs % 3 ) + 1 end
component_mixin()
click to toggle source
# File lib/time_scales/parts.rb, line 135 def component_mixin ; Frame::PartComponents::HasMonthOfQuarter ; end
default_for_unit?()
click to toggle source
# File lib/time_scales/parts.rb, line 134 def default_for_unit? ; false ; end
scheme_scoped_precision_mixin()
click to toggle source
# File lib/time_scales/parts.rb, line 136 def scheme_scoped_precision_mixin ; Frame::Precisions::HasMonthOfSchemePrecision ; end
scope()
click to toggle source
# File lib/time_scales/parts.rb, line 133 def scope ; Units::Quarter ; end
subdivision()
click to toggle source
# File lib/time_scales/parts.rb, line 132 def subdivision ; Units::Month ; end
symbol()
click to toggle source
# File lib/time_scales/parts.rb, line 131 def symbol ; :month_of_quarter ; end