A
Alexander Lamb
--Apple-Mail-6--1067034654
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed
Sorry for the stupid question but why doesn't this work:
def to_yaml_properties
return (super.to_yaml_properties + %w{ @url })
end
I am in a subclass of a class where I have:
def to_yaml_properties
%w{ @abbr @descr }
end
Obviously, I want the result to be an array with @abbr, @descr, @url
But when I print the result:
ping.to_yaml_properties.each { |prop| puts "-- " + prop.to_s}
I get only @url
Something obvious must be wrong here!?!
--
Alexander Lamb
Service d'Informatique M=E9dicale
H=F4pitaux Universitaires de Gen=E8ve
(e-mail address removed)
+41 22 372 88 62
+41 79 420 79 73
--Apple-Mail-6--1067034654--
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed
Sorry for the stupid question but why doesn't this work:
def to_yaml_properties
return (super.to_yaml_properties + %w{ @url })
end
I am in a subclass of a class where I have:
def to_yaml_properties
%w{ @abbr @descr }
end
Obviously, I want the result to be an array with @abbr, @descr, @url
But when I print the result:
ping.to_yaml_properties.each { |prop| puts "-- " + prop.to_s}
I get only @url
Something obvious must be wrong here!?!
--
Alexander Lamb
Service d'Informatique M=E9dicale
H=F4pitaux Universitaires de Gen=E8ve
(e-mail address removed)
+41 22 372 88 62
+41 79 420 79 73
--Apple-Mail-6--1067034654--