D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
hike-1.2.3
/
lib
/
hike
/
Filename :
extensions.rb
back
Copy
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