Sha256: 91cd27f3154d010d71680cb3cef7c4e17c5986674093ebea5b843182c81eb362

Contents?: true

Size: 286 Bytes

Versions: 5

Compression:

Stored size: 286 Bytes

Contents

class SimpleProcessor < Sexpr::Processor

  def on_hello(sexpr)
    [:simple_hello, sexpr]
  end

  def on_missing(sexpr)
    if sexpr.first == :simple_missing
      [:simple_pass_missing, sexpr]
    else
      super
    end
  end

  def on_apply(sexpr)
    apply(sexpr.last)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sexpr-1.1.0 spec/fixtures/simple_processor.rb
sexpr-1.0.0 spec/fixtures/simple_processor.rb
sexpr-0.6.0 spec/fixtures/simple_processor.rb
sexpr-0.5.1 spec/fixtures/simple_processor.rb
sexpr-0.5.0 spec/fixtures/simple_processor.rb