Class: TimeScales::Parts::MinuteOfHourClass

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



233
234
235
# File 'lib/time_scales/parts.rb', line 233

def &(time)
  time.min
end

#component_mixinObject



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

def component_mixin ; Frame::PartComponents::HasMinuteOfHour ; end

#default_for_unit?Boolean

Returns:

  • (Boolean)


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

def default_for_unit? ; true ; end

#scheme_scoped_precision_mixinObject



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

def scheme_scoped_precision_mixin ; Frame::Precisions::HasMinuteOfSchemePrecision ; end

#scopeObject



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

def scope       ; Units::Hour   ; end

#subdivisionObject



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

def subdivision ; Units::Minute ; end

#symbolObject



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

def symbol ; :minute_of_hour ; end