module Rip::Parser

Public Class Methods

load(origin, source_code) click to toggle source
# File source/rip/parser.rb, line 3
def self.load(origin, source_code)
  Rip::Parser::Grammar.parse(origin, source_code)
end
load_file(module_path) click to toggle source
# File source/rip/parser.rb, line 7
def self.load_file(module_path)
  _module_path = Pathname.new(module_path).expand_path
  load(_module_path, _module_path.read)
end
root() click to toggle source
# File source/rip/parser.rb, line 12
def self.root
  Pathname.new(__dir__).parent.parent
end