Class: SexpProcessor
- Inherits:
-
Object
- Object
- SexpProcessor
- Defined in:
- lib/sexp_processor.rb
Instance Attribute Summary collapse
-
#auto_shift_type ⇒ Object
Returns the value of attribute auto_shift_type.
-
#expected ⇒ Object
Returns the value of attribute expected.
-
#strict ⇒ Object
Returns the value of attribute strict.
Instance Method Summary collapse
Instance Attribute Details
#auto_shift_type ⇒ Object
Returns the value of attribute auto_shift_type.
3 4 5 |
# File 'lib/sexp_processor.rb', line 3 def auto_shift_type @auto_shift_type end |
#expected ⇒ Object
Returns the value of attribute expected.
3 4 5 |
# File 'lib/sexp_processor.rb', line 3 def expected @expected end |
#strict ⇒ Object
Returns the value of attribute strict.
3 4 5 |
# File 'lib/sexp_processor.rb', line 3 def strict @strict end |
Instance Method Details
#process(sexp) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/sexp_processor.rb', line 5 def process(sexp) return nil if sexp.nil? sexp.extend Sexp if !sexp.is_a?(Sexp) sexp.perform_process_call(self) end |