Sha256: d2c76d7839c366a22c0b4a6cb05caa3d353520d1cbfa9d501ef2c5f67e7c08ed
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
module Autocad class Paths include Enumerable def initialize(path) @paths = path.split(";").map { |p| Pathname(p) } end def <<(path) @paths << Path(path) end def append(path) @paths.append Path(path) end def prepend(path) paths.prepend Path(path) end def each(...) paths.each(...) end def to_s parhs.join(";") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autocad-0.4.6 | lib/autocad/paths.rb |