Sha256: 113eefbb392277acd71fffb95b0341854965b24d8567993ec5649cc23d446f97

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

module RiCal
  class PropertyValue
    class Array < PropertyValue # :nodoc:

      def value=(val)
        case val
        when String
          @value = val.split(",")
        else
          @value = val
        end
      end
      
      def value
        @value.join(",")
      end
      
      def self.convert(timezone_finder, ruby_object) # :nodoc:
        self.new(timezone_finder, :value => ruby_object)
      end
      
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friflaj_ri_cal-0.9.0 lib/ri_cal/property_value/array.rb