Use rubocop 0.24
And fix minor syntax
Merge pull request #175 from optiflows-cookbooks/rubocop_0.24

Use rubocop 0.24