class Rmk::VOutDir

Attributes

path[R]
vpath[R]

Public Class Methods

new(path:, vpath:nil) click to toggle source
Calls superclass method
# File lib/rmk/vdir.rb, line 9
def initialize(path:, vpath:nil)
        super()
        @path, @vpath = path, vpath
end

Public Instance Methods

derive_new(subname) click to toggle source
# File lib/rmk/vdir.rb, line 14
def derive_new(subname)
        Rmk::VOutDir.new path:File.join(@path, subname, ''), vpath:@vpath && File.join(@vpath, subname, '')
end
join_abs_path(path) click to toggle source
# File lib/rmk/vdir.rb, line 18
def join_abs_path(path) File.join @path, path end
join_virtual_path(path) click to toggle source
# File lib/rmk/vdir.rb, line 20
def join_virtual_path(path) @vpath && File.join(@vpath, path) end
new_filepath(name) click to toggle source
# File lib/rmk/vdir.rb, line 22
def new_filepath(name)
        {path:File.join(@path, name), vpath:@vpath && (@vpath.empty? ? name : File.join(@vpath, name))}
end