Class: TimeScales::Parts::YearOfSchemeClass

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



83
84
85
# File 'lib/time_scales/parts.rb', line 83

def &(time)
  time.year
end

#component_mixinObject



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

def component_mixin ; Frame::PartComponents::HasYearOfScheme ; end

#default_for_unit?Boolean

Returns:

  • (Boolean)


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

def default_for_unit? ; true    ; end

#scheme_scoped_precision_mixinObject



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

def scheme_scoped_precision_mixin ; Frame::Precisions::HasYearOfSchemePrecision ; end

#scopeObject



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

def scope       ; Units::Scheme ; end

#subdivisionObject



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

def subdivision ; Units::Year   ; end

#symbolObject



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

def symbol ; :year_of_scheme ; end