class DBCode::SearchPath

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File lib/dbcode/schema.rb, line 3
def initialize(path)
  @path = path.to_s.split ','
end

Public Instance Methods

append(schema) click to toggle source
# File lib/dbcode/schema.rb, line 11
def append(schema)
  from_parts path + [schema]
end
prepend(schema) click to toggle source
# File lib/dbcode/schema.rb, line 7
def prepend(schema)
  from_parts [schema] + path
end
to_s() click to toggle source
# File lib/dbcode/schema.rb, line 15
def to_s
  path.join ','
end

Private Instance Methods

from_parts(parts) click to toggle source
# File lib/dbcode/schema.rb, line 22
def from_parts(parts)
  self.class.new parts.join ','
end