Sha256: 9e219663090fd937ed29fb6fbb6440a5283694c1b5fe5fcbbbaa645b5c0fc0ee
Contents?: true
Size: 365 Bytes
Versions: 1
Compression:
Stored size: 365 Bytes
Contents
class Shoes module Common class StyleNormalizer include Color::DSLHelpers def normalize(orig_style) normalized_style = {} [:fill, :stroke].each do |s| if orig_style[s] normalized_style[s] = pattern(orig_style[s]) end end orig_style.merge(normalized_style) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre1 | lib/shoes/common/style_normalizer.rb |