Sha256: e4511a0819f514c46d3612d62c0edb0d6afd93e30493b0ec381ad1e4122a2c7e
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
module Docks module Tags class For < Base def initialize @name = :for @multiline = false end def setup_post_processors after_each_pattern(:late) do |pattern| pattern.components.each { |component| set_for_on_component_variations(component) } end end protected def set_for_on_component_variations(component) component.variations.each { |variation| variation.for = component.name } component.subcomponents.each { |subcomponent| set_for_on_component_variations(subcomponent) } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | lib/docks/tags/for_tag.rb |
docks_app-0.0.2 | lib/docks/tags/for_tag.rb |
docks_app-0.0.1 | lib/docks/tags/for_tag.rb |