Class: SerializableProc::Parsers::Static

Inherits:
Base
  • Object
show all
Defined in:
lib/serializable_proc/parsers/static.rb

Class Method Summary collapse

Methods inherited from Base

sexp_derivatives

Class Method Details

.matchersObject



15
16
17
# File 'lib/serializable_proc/parsers/static.rb', line 15

def matchers
  @matchers ||= []
end

.process(klass, file, line) ⇒ Object



9
10
11
12
13
# File 'lib/serializable_proc/parsers/static.rb', line 9

def process(klass, file, line)
  const_set(:RUBY_PARSER, RubyParser.new) unless const_defined?(:RUBY_PARSER)
  @klass, @file, @line = klass, file, line
  extract_code_and_sexp
end