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

Version Path
honkster-js-test-server-0.2.12 vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
honkster-js-test-server-0.2.11 vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
honkster-js-test-server-0.2.10 vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
honkster-js-test-server-0.2.9 vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
honkster-screw-unit-server-0.6.3 vendor/js-test-core/vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
js-test-server-0.2.8 vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
js-test-server-0.2.7 vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
js-test-server-0.2.6 vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
honkster-screw-unit-server-0.6.2 vendor/js-test-core/vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
honkster-screw-unit-server-0.6.1 vendor/js-test-core/vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb
btakita-screw-unit-server-0.6.0 vendor/js-test-core/vendor/lucky-luciano/lib/lucky_luciano/resource/path.rb