lib/xdg/paths/directory.rb in xdg-3.1.1 vs lib/xdg/paths/directory.rb in xdg-4.0.0
- old
+ new
@@ -12,15 +12,15 @@
@pair = pair
@environment = environment
end
def default
- paths.split(DELIMITER).map(&method(:expand))
+ value.split(DELIMITER).map(&method(:expand))
end
def dynamic
- String(environment[key]).then { |env_paths| env_paths.empty? ? paths : env_paths }
+ String(environment[key]).then { |env_value| env_value.empty? ? value : env_value }
.split(DELIMITER)
.uniq
.map(&method(:expand))
end
@@ -34,10 +34,10 @@
def key
String pair.key
end
- def paths
+ def value
String pair.value
end
def expand path
Pathname(path).expand_path