Sha256: e13383b3e4abcec7e3092c4f761a7431aae0c46346beaa283d35222828c54c4d
Contents?: true
Size: 628 Bytes
Versions: 24
Compression:
Stored size: 628 Bytes
Contents
require "hiccup/serializers/ical" require "active_support/concern" module Hiccup module Serializable module Ical extend ActiveSupport::Concern def to_ical ical_serializer.dump(self) end module ClassMethods def from_ical(ics) ical_serializer.load(ics) end def ical_serializer @ical_serializer ||= Serializers::Ical.new(self) end end private def ical_serializer self.class.ical_serializer end end end end
Version data entries
24 entries across 24 versions & 1 rubygems
Version | Path |
---|---|
hiccup-0.4.0 | lib/hiccup/serializable/ical.rb |
hiccup-0.3.0 | lib/hiccup/serializable/ical.rb |
hiccup-0.2.1 | lib/hiccup/serializable/ical.rb |
hiccup-0.2.0 | lib/hiccup/serializable/ical.rb |