Sha256: fe0cde39289dbe08350fb677b9d16a6395426837cdfd3e313021b38b74f5efdc

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

module Docks
  module Tags
    class Alias < Base
      def initialize
        @name = :alias
        @multiline = false
        @multiple_allowed = true
      end

      def process(symbol)
        symbol.update(@name) do |aliases|
          Array(aliases).map { |alias_line| split_on_commas_spaces_and_pipes(alias_line) }.flatten
        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/alias_tag.rb
docks_app-0.0.2 lib/docks/tags/alias_tag.rb
docks_app-0.0.1 lib/docks/tags/alias_tag.rb