Sha256: 348c45b258453f24e3b9ead2acbbcf9f27d1faedaa4f894b799b1e923f09ac4d
Contents?: true
Size: 505 Bytes
Versions: 5
Compression:
Stored size: 505 Bytes
Contents
# encoding: utf-8 module Policy module Follower # Converter of items to array of unique symbols # # @api private module Names # Converts items to array of unique symbols # # @example # Policy::Follower::Names.from "foo", [:foo, "bar"], "baz" # # => [:foo, :bar, :baz] # # @param [Array<#to_sym>] items # # @return [Array<Symbol>] def self.from(*items) items.flatten.map(&:to_sym) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems