Class: TimeScales::Parts::MonthOfYearClass

Inherits:
AbstractPart show all
Includes:
Singleton
Defined in:
lib/time_scales/parts.rb

Instance Method Summary collapse

Methods inherited from AbstractPart

#===, #name, #scale, #subdivision_name, #to_s, #to_time_scales_part

Instance Method Details

#&(time) ⇒ Object



120
121
122
# File 'lib/time_scales/parts.rb', line 120

def &(time)
  time.month
end

#component_mixinObject



117
# File 'lib/time_scales/parts.rb', line 117

def component_mixin ; Frame::PartComponents::HasMonthOfYear ; end

#default_for_unit?Boolean

Returns:

  • (Boolean)


116
# File 'lib/time_scales/parts.rb', line 116

def default_for_unit? ; true ; end

#scheme_scoped_precision_mixinObject



118
# File 'lib/time_scales/parts.rb', line 118

def scheme_scoped_precision_mixin ; Frame::Precisions::HasMonthOfSchemePrecision ; end

#scopeObject



115
# File 'lib/time_scales/parts.rb', line 115

def scope       ; Units::Year  ; end

#subdivisionObject



114
# File 'lib/time_scales/parts.rb', line 114

def subdivision ; Units::Month ; end

#symbolObject



113
# File 'lib/time_scales/parts.rb', line 113

def symbol ; :month_of_year ; end