def self.generate_required_data(orders)
all_the_orders = []
orders.each do |order|
...
class User attr_writer :opts def opts ...
Ruby Refactor simple attr_reader
Shortest, most aesthetic wa...
def parse_url(url)
matches = url.match(/\/([\d]{10})/)
return nil unless matches
...
Ruby Return nil if nothing matched
I want to return nil if not...
Just interested to see how ...