Skip to content

Commit

Permalink
simplifying ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 24, 2010
1 parent d6bb6bc commit d4eceec
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/restfulie/common/representation/atom/xml.rb
Expand Up @@ -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
Expand Down

0 comments on commit d4eceec

Please sign in to comment.