Sha256: 30ee5d2457cb438ad262288b9f6b2adcd3b07ef770771658ed3ec10676c6b939
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.pre3 | lib/shoes/common/style_normalizer.rb |
shoes-dsl-4.0.0.pre2 | lib/shoes/common/style_normalizer.rb |