From: Pau Garcia i Quiles Date: 2006-10-22T06:26:41+09:00 Subject: Conditional modifier syntax --nextPart4600703.AyXPV3I928 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, Am I the only one who finds beautiful this syntax for conditional modifiers? @playlist=3D source[:playlist] if source[:playlist].instance_of?(XSPF::Play= list)=20 else raise TypeError "The playlist must be an instance of XSPF::Playlist" It reads like a book even if you don't know Ruby: "@playlist is X if this o= r Y=20 if not" PS: It's beautiful but it doesn't work :-/ =2D-=20 Pau Garcia i Quiles http://www.elpauer.org (Due to the amount of work, I usually need 10 days to answer) --nextPart4600703.AyXPV3I928 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBFOpCI/DzYv9iGJzsRAkH2AKCxQn31cRODF6v9I8jvh49nGv8b1QCfXNwr kJVsIsXJZPHZDTtkbzOx0Mg= =yaZe -----END PGP SIGNATURE----- --nextPart4600703.AyXPV3I928--