module TimeScales::Frame::PartComponents::HasMonthOfYear

Attributes

month[R]
month_of_year[R]

Public Class Methods

included(other) click to toggle source
# File lib/time_scales/frame/part_components.rb, line 37
def self.included(other)
  other.extend HasMonthOfYear::ClassMixin
end

Private Instance Methods

_initialize(args_array) click to toggle source
Calls superclass method
# File lib/time_scales/frame/part_components.rb, line 47
def _initialize(args_array)
  super
  @month_of_year = ensure_fixnum( args_array.shift )
end
prepare_time_struct(struct) click to toggle source
Calls superclass method
# File lib/time_scales/frame/part_components.rb, line 52
def prepare_time_struct(struct)
  struct.month = (struct.month || 1) + month_of_year - 1
  super
end