class Rybfile

Public Class Methods

load(path) click to toggle source
# File lib/rybfile.rb, line 26
def self.load(path)
  rybfile = Rybfile.new

  # TODO(mtwilliams): Rewrite exceptions from Typespec/Pour into Ryb and attach
  # source information (the file and line number from the responsible Rybfile.)
  DomainSpecificLanguage.for(rybfile).instance_eval(File.read(path), path)

  rybfile
end