Sha256: 43b37a29bf5a5806b133ba6af4a11eabe053ce048164ac9d39850f4c76487f7d
Contents?: true
Size: 486 Bytes
Versions: 3
Compression:
Stored size: 486 Bytes
Contents
module Docks module Tags class SetBy < Base def initialize @name = :set_by @multiline = false @multiple_allowed = true end def process(symbol) symbol.update(@name) do |set_bys| set_bys = Array(set_bys).map { |set_by| split_on_top_level_parens_commas_and_pipes(set_by) }.flatten set_bys.map { |set_by| OpenStruct.new name_and_parenthetical(set_by, :setter, :constant) } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | lib/docks/tags/set_by_tag.rb |
docks_app-0.0.2 | lib/docks/tags/set_by_tag.rb |
docks_app-0.0.1 | lib/docks/tags/set_by_tag.rb |