Class: Otto::Core::FileSafety::StaticFile
- Inherits:
-
Struct
- Object
- Struct
- Otto::Core::FileSafety::StaticFile
- Defined in:
- lib/otto/core/file_safety.rb
Overview
A validated static file: the canonical root, the canonical absolute path under it, and their relative difference. Returned as one value so callers never have to re-run realpath (one resolution per request).
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#relative ⇒ Object
Returns the value of attribute relative.
-
#root ⇒ Object
Returns the value of attribute root.
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path
37 38 39 |
# File 'lib/otto/core/file_safety.rb', line 37 def path @path end |
#relative ⇒ Object
Returns the value of attribute relative
37 38 39 |
# File 'lib/otto/core/file_safety.rb', line 37 def relative @relative end |
#root ⇒ Object
Returns the value of attribute root
37 38 39 |
# File 'lib/otto/core/file_safety.rb', line 37 def root @root end |