Class: Sofia::Types::Client::Path
- Inherits:
-
Object
- Object
- Sofia::Types::Client::Path
- Defined in:
- lib/sofia/types/client/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
10 11 12 |
# File 'lib/sofia/types/client/path.rb', line 10 def initialize(path = '/') @path = validate_and_normalize(path).freeze #: String end |
Instance Method Details
#to_s ⇒ Object
: -> String
15 16 17 |
# File 'lib/sofia/types/client/path.rb', line 15 def to_s @path end |