Class: Sofia::Types::Path
- Inherits:
-
Object
- Object
- Sofia::Types::Path
- Defined in:
- lib/sofia/types/path.rb
Instance Method Summary collapse
-
#initialize(path = '/') ⇒ Path
constructor
: (?untyped path) -> void.
-
#to_s ⇒ Object
: -> String.
Constructor Details
#initialize(path = '/') ⇒ Path
: (?untyped path) -> void
9 10 11 |
# File 'lib/sofia/types/path.rb', line 9 def initialize(path = '/') @path = validate_and_normalize(path).freeze #: String end |
Instance Method Details
#to_s ⇒ Object
: -> String
14 15 16 |
# File 'lib/sofia/types/path.rb', line 14 def to_s @path end |