我很想知道,这部法典是否可以归入一条线:
if self.id
return if Party.find_by_id(self.id).name.downcase == self.name.downcase
end
我很想知道,在一条行文中,有没有办法发表这一声明。
I know you can use if statement ? then_statement : else_statement
but hopefully you can see here that there is no else. Perhaps break
or continue
or something like that? (Feel free to make optimisation to the actual code if you see it - that s pretty much the purpose here)