Use def with parentheses when there are arguments

According to Ruby Style Guide https://github.com/styleguide/ruby