Class: Shoes::Common::StyleNormalizer
- Inherits:
-
Object
- Object
- Shoes::Common::StyleNormalizer
- Includes:
- Shoes::Color::DSLHelpers
- Defined in:
- shoes-core/lib/shoes/common/style_normalizer.rb
Instance Method Summary collapse
Methods included from Shoes::Color::DSLHelpers
#color, #gradient, #gray, #pattern, #rgb
Methods included from ImageHandling
#absolute_file_path, #default_search_paths, #search_for
Instance Method Details
#normalize(orig_style) ⇒ Object
7 8 9 10 11 12 13 |
# File 'shoes-core/lib/shoes/common/style_normalizer.rb', line 7 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 |