class Microstation::Directory

Attributes

path[R]

Public Class Methods

drawings_in_dir(dir) click to toggle source
# File lib/microstation/directory.rb, line 9
def self.drawings_in_dir(dir)
  new(dir).drawings
end
new(dir) click to toggle source
# File lib/microstation/directory.rb, line 15
def initialize(dir)
  @path = Pathname(dir).expand_path
end

Public Instance Methods

cell_libraries() click to toggle source
# File lib/microstation/directory.rb, line 35
def cell_libraries
  Pathname.glob(path + "*.cel")
end
drawings() click to toggle source
# File lib/microstation/directory.rb, line 27
def drawings
  Pathname.glob(path + "*.d{gn,wg}")
end
find_drawing(name) click to toggle source
# File lib/microstation/directory.rb, line 23
def find_drawing(name)
  drawings.find{|pn| pn.to_s == name }
end
plot_drivers() click to toggle source
# File lib/microstation/directory.rb, line 31
def plot_drivers
  Pathname.glob(path + "*.pltcfg")
end
templates() click to toggle source
# File lib/microstation/directory.rb, line 39
def templates
  Pathname.glob(path + '*.yaml')
end
to_path() click to toggle source
# File lib/microstation/directory.rb, line 19
def to_path
  path
end