Class: IceCube::Rule
- Inherits:
-
Object
- Object
- IceCube::Rule
- Defined in:
- lib/ice_cube/anchored_monthly_rule.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.from_hash(original_hash) ⇒ Object
133 134 135 136 137 138 139 140 |
# File 'lib/ice_cube/anchored_monthly_rule.rb', line 133 def from_hash(original_hash) hash = IceCube::FlexibleHash.new(original_hash) if hash[:rule_type].to_s == "IceCube::AnchoredMonthlyRule" IceCube::AnchoredMonthlyRule.from_hash(original_hash) else from_hash_without_anchored(original_hash) end end |
.from_hash_without_anchored ⇒ Object
131 |
# File 'lib/ice_cube/anchored_monthly_rule.rb', line 131 alias_method :from_hash_without_anchored, :from_hash |