class Relaxo::Model::Path

A string that won't be escaped when concatenating with a path:

Constants

ENCODE

Public Class Methods

escape(values) click to toggle source
# File lib/relaxo/model/path.rb, line 35
def self.escape(values)
        escaped_path = values.map do |part|
                part = part.to_s
                
                if part.is_a? Path
                        part
                else
                        part.to_s.gsub(/[\/%]/, ENCODE)
                end
        end.join('-')
        
        return self.new(escaped_path)
end

Public Instance Methods

to_s() click to toggle source
# File lib/relaxo/model/path.rb, line 27
def to_s
        self
end
to_str() click to toggle source
# File lib/relaxo/model/path.rb, line 31
def to_str
        self
end