def build_rule(expression)
      rule = build_root_recurrence_rule(expression)
      rule = build_year_rules(rule, expression)
      rule = build_weekday_rule(rule, expression)
      rule = build_day_rules(rule, expression)
      rule = build_time_rules(rule, expression)
      rule = rule.until(expression.until) unless expression.until.blank?

      rule
    end
def build_rule(expression)
      rule = build_root_recurrence_rule(expression)
      rule = build_year_rules(rule, expression)
      rule = build_weekday_rule(rule, expression)
      rule = build_day_rules(rule, expression)
      rule = build_time_rules(rule, expression)
      rule = rule.until(expression.until) unless expression.until.blank?

      rule
    end
Generates a rule based on a parsed expression