Sha256: 9076a821312947f815f91a782338b4eed9fb5c676987be8a9533c0921d167ea7
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
#encoding: utf-8 module Vagabond class Layout def initialize(base_dir) unless(File.exists?(path = File.join(base_dir, 'spec/Layout'))) raise 'Spec layout file does not exist' end @l = Mash.new(self.instance_eval(IO.read(path), path, 1)) end def [](k) @l[k] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagabond-0.2.10 | lib/vagabond/layout.rb |