Sha256: d740c4e1333b7c85ceff5658926def77445f97154dcb8de82b62f48b53182092
Contents?: true
Size: 491 Bytes
Versions: 8
Compression:
Stored size: 491 Bytes
Contents
require 'ruby_parser' require 'delegate' module DRG class Ruby autoload :Const, 'drg/ruby/const' autoload :Condition, 'drg/ruby/condition' autoload :Func, 'drg/ruby/func' autoload :ClassFunc, 'drg/ruby/class_func' autoload :InstanceFunc, 'drg/ruby/instance_func' attr_reader :sexp, :const # @param [Pathname, String] file def initialize(file) @sexp = RubyParser.new.parse File.read(file) @const = DRG::Ruby::Const.new(sexp) end end end
Version data entries
8 entries across 8 versions & 1 rubygems