class IceCube::Validations::MonthOfYear::Validation

Attributes

month[R]
value[R]

Public Class Methods

new(month) click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 22
def initialize(month)
  @month = month
end

Public Instance Methods

build_hash(builder) click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 38
def build_hash(builder)
  builder.validations_array(:month_of_year) << month
end
build_ical(builder) click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 42
def build_ical(builder)
  builder['BYMONTH'] << month
end
build_s(builder) click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 34
def build_s(builder)
  builder.piece(:month_of_year) << IceCube::I18n.t("ice_cube.date.month_names")[month]
end
dst_adjust?() click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 30
def dst_adjust?
  true
end
type() click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 26
def type
  :month
end