module TimeScales::Frame::PartComponents::HasDayOfMonth

Attributes

day[R]
day_of_month[R]

Public Class Methods

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

Private Instance Methods

_initialize(args_array) click to toggle source
Calls superclass method
# File lib/time_scales/frame/part_components.rb, line 77
def _initialize(args_array)
  super
  @day_of_month = 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 82
def prepare_time_struct(struct)
  struct.day = (struct.day || 1) + day_of_month - 1
  super
end