Class: Wallaby::LinkOptionsNormalizer
- Inherits:
-
Object
- Object
- Wallaby::LinkOptionsNormalizer
- Defined in:
- lib/services/wallaby/link_options_normalizer.rb
Overview
Link renderer
Class Method Summary collapse
Class Method Details
.normalize(html_options, block, defaults) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/services/wallaby/link_options_normalizer.rb', line 5 def normalize(, block, defaults) block ||= defaults[:block] [:title] ||= defaults[:block].call # allow empty class to be set if !.key?(:class) && defaults[:class] [:class] = defaults[:class] end [, block] end |