Fix Ruby style issues