Module: Ronin::Static
Public Visibility
Public Class Method Summary
| directory(path) |
Adds the path to the Set of static directories. Returns: String |
|---|---|
| static_dirs |
Returns: Set |
Public Class Method Details
directory
Adds the path to the Set of static directories.
[View source]
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/ronin/static/static.rb', line 47 def Static.directory(path) path = File.(path) unless File.directory?(path) raise(RuntimeError,"#{path.dump} must be a directory") end Static.static_dirs << path return path end |
static_dirs
public
Set
static_dirs
[View source]
29 30 31 |
# File 'lib/ronin/static/static.rb', line 29 def Static.static_dirs @@ronin_static_dirs ||= Set[] end |