lib/vpim/property/location.rb in vpim-0.695 vs lib/vpim/property/location.rb in vpim-13.11.11

- old
+ new

@@ -1,5 +1,6 @@ +# -*- encoding : utf-8 -*- =begin Copyright (C) 2008 Sam Roberts This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for @@ -27,12 +28,21 @@ if prop prop = Vpim.decode_list(prop.value_raw, ';') do |item| item.to_f end end prop end + end + end + # add a location property to (v)events. This is specified in the RFC 2445 + module Set + module Location + def location(value) + set_text 'LOCATION', value + end end end + end end