Class: Sofia::Types::Path

Inherits:
Object
  • Object
show all
Defined in:
lib/sofia/types/path.rb

Instance Method Summary collapse

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_sObject

: -> String



14
15
16
# File 'lib/sofia/types/path.rb', line 14

def to_s
  @path
end