Class: Mongrel2::Config::Directory
- Inherits:
-
Object
- Object
- Mongrel2::Config::Directory
- Defined in:
- lib/mongrel2/config/directory.rb
Overview
Mongrel2 Directory (Dir) configuration class
Instance Method Summary collapse
-
#to_s ⇒ Object
Return a description of the directory.
-
#validate ⇒ Object
Sequel validation callback: add errors if the record is invalid.
Instance Method Details
#to_s ⇒ Object
Return a description of the directory.
27 28 29 30 31 32 33 34 |
# File 'lib/mongrel2/config/directory.rb', line 27 def to_s return "Directory %s(%s) {%s} [cache %ds]" % [ self.base, self.index_file, self.default_ctype, self.cache_ttl ] end |
#validate ⇒ Object
Sequel validation callback: add errors if the record is invalid.
18 19 20 21 22 23 |
# File 'lib/mongrel2/config/directory.rb', line 18 def validate self.validate_base self.validate_index_file self.validate_default_ctype self.validate_cache_ttl end |