Sha256: a7af8c7d1dbabacd9d888359c6c2a66c5f15675c0fac7947e474ee2df63778b3
Contents?: true
Size: 396 Bytes
Versions: 11
Compression:
Stored size: 396 Bytes
Contents
class LuckyLuciano::Resource::Path attr_reader :resource, :sub_paths def initialize(resource, *sub_paths) @resource = resource @sub_paths = sub_paths end def =~(other) to_s =~ other end def [](*additional_sub_paths) sub_paths.push(*additional_sub_paths) self end def to_s resource.path(*sub_paths) end def ==(other) to_s == other.to_s end end
Version data entries
11 entries across 11 versions & 4 rubygems