Class: SexpInterpreter

Inherits:
SexpProcessor show all
Defined in:
lib/sexp_processor.rb

Overview

A simple subclass of SexpProcessor that defines a pattern I commonly use: non-mutative and strict process that return assorted values; AKA, an interpreter.

Constant Summary

Constants inherited from SexpProcessor

SexpProcessor::VERSION

Instance Attribute Summary

Attributes inherited from SexpProcessor

#auto_shift_type, #context, #debug, #default_method, #env, #expected, #require_empty, #strict, #unsupported, #warn_on_default

Instance Method Summary collapse

Methods inherited from SexpProcessor

#assert_empty, #assert_type, #error_handler, expand_dirs_to_files, #in_context, #on_error_in, #process, #process_dummy, processors, #rewrite, rewriters, #scope

Constructor Details

#initializeSexpInterpreter

:nodoc:



467
468
469
470
471
472
473
# File 'lib/sexp_processor.rb', line 467

def initialize #:nodoc:
  super

  self.expected        = Object
  self.require_empty   = false
  self.strict          = true
end