neilmiddleton/money — comment on commit 4caafd8d4e2dc1b4dbd203608a56fa801be8b82a
File: lib/money/money/parsing.rb line 42
By semmons99:

Can you simplify the code to this please.

```ruby
c = if Money.assume_from_symbol && %w($ € £).include?(i[0,1])
case i[0,1]
when '$' then 'USD'
when '€' then 'EUR'
when '£' then 'GBP'
else
nil
end
else
m = str.scan /([A-Z]{2,3})/
m[0] ? m[0][0] : nil
end
```

Notice I also put an else into your case statement.