Class: SexpProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/sexp_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auto_shift_typeObject

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

#expectedObject

Returns the value of attribute expected.



3
4
5
# File 'lib/sexp_processor.rb', line 3

def expected
  @expected
end

#strictObject

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