If you need an if there it's not worth the trouble. However I used a similar approach for some methods in `dimension.rb` where I got integer parsing methods.

E.g. something like:

```ruby
PATTERN_SETTING_METHODS = [:fill, :stroke]
NORMAL_SETTER_METHODS = [:the_other_one]

PATTERN_SETTING_METHODS.each do |style|
  define_method style.to_s do |val|
       @__app__.style[style] = pattern(val)
   end
end
# and then normal stuff with the other methods
```

Just a quick sketch, not too much time went into naming here