Class: TimeScales::Parts::DayOfMonthClass

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



157
158
159
# File 'lib/time_scales/parts.rb', line 157

def &(time)
  time.day
end

#component_mixinObject



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

def component_mixin ; Frame::PartComponents::HasDayOfMonth ; end

#default_for_unit?Boolean

Returns:

  • (Boolean)


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

def default_for_unit? ; true ; end

#scheme_scoped_precision_mixinObject



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

def scheme_scoped_precision_mixin ; Frame::Precisions::HasDayOfSchemePrecision ; end

#scopeObject



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

def scope       ; Units::Month ; end

#subdivisionObject



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

def subdivision ; Units::Day   ; end

#symbolObject



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

def symbol ; :day_of_month ; end