class TimeScales::Parts::QuarterOfYearClass

Public Instance Methods

&(time) click to toggle source
# File lib/time_scales/parts.rb, line 101
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 98
def component_mixin ; Frame::PartComponents::HasQuarterOfYear ; end
default_for_unit?() click to toggle source
# File lib/time_scales/parts.rb, line 97
def default_for_unit? ; true ; end
scheme_scoped_precision_mixin() click to toggle source
# File lib/time_scales/parts.rb, line 99
def scheme_scoped_precision_mixin ; Frame::Precisions::HasQuarterOfSchemePrecision ; end
scope() click to toggle source
# File lib/time_scales/parts.rb, line 96
def scope       ; Units::Year    ; end
subdivision() click to toggle source
# File lib/time_scales/parts.rb, line 95
def subdivision ; Units::Quarter ; end
symbol() click to toggle source
# File lib/time_scales/parts.rb, line 94
def symbol ; :quarter_of_year ; end