Sha256: 5e60e14bc82ddc5fe275f825aefe76df25fb5615bc85e786bb057430173ede12

Contents?: true

Size: 340 Bytes

Versions: 4

Compression:

Stored size: 340 Bytes

Contents

# This takes a path string relative to the configured root path and tranforms
# to the full qualifed root path.  The goal here is to specify path options
# with root-relative path strings.

module Ardb

  class RootPath < String

    def initialize(path_string)
      super(Ardb.config.root_path.join(path_string).to_s)
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ardb-0.27.3 lib/ardb/root_path.rb
ardb-0.27.2 lib/ardb/root_path.rb
ardb-0.27.1 lib/ardb/root_path.rb
ardb-0.27.0 lib/ardb/root_path.rb