Module: Rybfile

Defined in:
lib/rybfile.rb

Overview

TODO(mtwilliams): Improve the handling of Rybfiles.

Class Method Summary collapse

Class Method Details

.load(path) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/rybfile.rb', line 6

def self.load(path)
  begin
    return OpenStruct.new(:project => eval(File.read(path), binding(), path)).freeze
  rescue SignalException, SystemExit
    raise
  rescue SyntaxError, Exception => e
    raise "Invalid Rybfile!\n #{path}\n #{e}"
  end
end