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