class Ferver::Configuration
Constants
- DEFAULT_FILE_SERVER_DIR_PATH
By default, serve files from current location when the gem is called.
Attributes
directory[W]
For testing
directory_path[RW]
Return the absolute path to the directory Ferver
is serving files from.
Public Class Methods
new(directory_path = DEFAULT_FILE_SERVER_DIR_PATH, serve_hidden = false)
click to toggle source
# File lib/ferver/configuration.rb, line 18 def initialize(directory_path = DEFAULT_FILE_SERVER_DIR_PATH, serve_hidden = false) @directory_path = directory_path @serve_hidden = serve_hidden end
Public Instance Methods
directory()
click to toggle source
# File lib/ferver/configuration.rb, line 23 def directory @directory ||= FerverDirectory.new(self) end