Sha256: 0da6602c9038cc5bc722ee9bffa57f3b7517dcc2aaa3343c32cd7e45675e5d85
Contents?: true
Size: 507 Bytes
Versions: 104
Compression:
Stored size: 507 Bytes
Contents
require 'hike/normalized_array' module Hike # `Extensions` is an internal collection for tracking extension names. class Extensions < NormalizedArray # Extensions added to this array are normalized with a leading # `.`. # # extensions << "js" # extensions << ".css" # # extensions # # => [".js", ".css"] # def normalize_element(extension) if extension[/^\./] extension else ".#{extension}" end end end end
Version data entries
104 entries across 82 versions & 21 rubygems