Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

行間に意味を持たせたい #79

Open
ohta-rh opened this issue Aug 31, 2013 · 0 comments
Open

行間に意味を持たせたい #79

ohta-rh opened this issue Aug 31, 2013 · 0 comments

Comments

@ohta-rh
Copy link
Contributor

ohta-rh commented Aug 31, 2013

#ダメな例
class Hoge
  def nagai_syori
     hoge = Hoge.first
     return false if hoge.blank?
     return false if hoge.name == "undefined"
     hoge = [1,2,3]
     hoge.pop
     hoge.push
     true
  end
end

#よい例
class Hoge
  def nagai_syori
     hoge = Hoge.first
     return false if hoge.blank?
     return false if hoge.name == "undefined"

     hoge = [1,2,3]
     hoge.pop
     hoge.push
     true
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant