da_path
da_path.cr
path = DA_Path.new("/my_path/to/somewhere?a=b&c=d")
path == ("/my_path/to/somewhere") # false
path == "/my_path/to/somewhere?a=b&c=d" # true
path.starts_with?("/my_path") # true
path.split('/') # Deque(DA_Path::Token)
path.params("/my_path/", :dir, :target)[:dir] # "to"
path.params("/my_path/", :dir, :target)[:target] # "somewhere?a=b&c=d"
path.params("/my_path/to/", :target)[:target] # "somewhere?a=b&c=d"
Repository
da_path
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- over 6 years ago
- February 23, 2018
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 18:05:39 GMT
Languages