From d4eceeca57434e912f5bf97cd7eee4e1cf8bd69c Mon Sep 17 00:00:00 2001 From: guilherme silveira Date: Sun, 24 Oct 2010 11:19:35 -0200 Subject: [PATCH] simplifying ifs --- lib/restfulie/common/representation/atom/xml.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/restfulie/common/representation/atom/xml.rb b/lib/restfulie/common/representation/atom/xml.rb index 8fe42320..ffc223b5 100644 --- a/lib/restfulie/common/representation/atom/xml.rb +++ b/lib/restfulie/common/representation/atom/xml.rb @@ -39,12 +39,7 @@ def to_s end def method_missing(method) - value = text(method) - unless value - super - else - value - end + text(method) || super end protected