DEV Community

Discussion on: OO Ruby Concepts Part 2, Object Attributes

Collapse
 
k_penguin_sato profile image
K-Sato • Edited

Thanks for this post!
IMHO, having proper indentation would make your code a lot easier for readers to understand.

blog.programminghub.io/blog/2017/0...

In ruby, the convention is using two spaces per indentation.

github.com/rubocop-hq/ruby-style-g...

# bad - four spaces
def some_method
    do_something
end

# good
def some_method
  do_something
end