Class: RiCal::PropertyValue::Array

Inherits:
RiCal::PropertyValue show all
Defined in:
lib/ri_cal/property_value/array.rb

Overview

  • ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license

Direct Known Subclasses

OccurrenceList

Instance Attribute Summary

Attributes inherited from RiCal::PropertyValue

#params, #timezone_finder

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RiCal::PropertyValue

#==, #add_date_times_to, date_or_date_time, date_or_date_time_or_period, #default_tzid, #enumerator, #equality_value, #find_timezone, #for_parent, if_valid_string, #initialize, #parms_string, #ruby_value, #to_options_hash, #to_ri_cal_property_value, #to_s, #tz_info_source?, #validate_value, #visible_params

Constructor Details

This class inherits a constructor from RiCal::PropertyValue

Class Method Details

.convert(timezone_finder, ruby_object) ⇒ Object

:nodoc:



20
21
22
# File 'lib/ri_cal/property_value/array.rb', line 20

def self.convert(timezone_finder, ruby_object) # :nodoc:
  self.new(timezone_finder, :value => ruby_object)
end

Instance Method Details

#valueObject



16
17
18
# File 'lib/ri_cal/property_value/array.rb', line 16

def value
  @value.join(",")
end

#value=(val) ⇒ Object

:nodoc:



7
8
9
10
11
12
13
14
# File 'lib/ri_cal/property_value/array.rb', line 7

def value=(val)
  case val
  when String
    @value = val.split(",")
  else
    @value = val
  end
end