Sha256: 639288564fdec88cd82df4f558763b94362f6aa99b238bb47f874c05aec6cda6
Contents?: true
Size: 777 Bytes
Versions: 6
Compression:
Stored size: 777 Bytes
Contents
module Apache # Methods to handle directory settings module Directories # Create an Options directive # # The options passed into this method are Apachified: # options :exec_cgi, :follow_sym_links #=> Options ExecCGI FollowSymLinks def options(*opt) create_options_list('options'.apachify, *opt) end # Create an IndexOptions directive # # The options passed into this method are Apachified: # index_options :fancy_indexing, :suppress_description #=> IndexOptions FancyIndexing SuppressDescription def index_options(*opt) create_options_list('index_options'.apachify, *opt) end private def create_options_list(tag, *opt) self << "#{tag} #{opt.collect(&:optionify) * " "}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems