Sha256: fd12843d2121cb9def1bc9b280db6132aa50a8bfe78476a1e79f7bd9ca7295c9

Contents?: true

Size: 720 Bytes

Versions: 4

Compression:

Stored size: 720 Bytes

Contents

class Wankel::SaxParser

  def on_map_start
    puts 'start map'
  end

  def on_map_end
    puts 'end map'
  end

  def on_map_key(key)
    puts 'key'
  end
  
  def on_null
    puts "null"
  end

  def on_boolean(value)
    puts value
  end

  def on_integer(i)
    puts "integer"
  end

  def on_double(d)
    puts "double"
  end

  def on_string(s)
    puts "string"
  end

  def on_array_start
    puts "start array"
  end

  def on_array_end
    puts "end array"
  end

end


class Wankel::SaxEncoder

  def number
  end
  
  def string
  end
  
  def null
  end
  
  def bool
  end
  
  def map_open
  end
  
  def map_close
  end
  
  def array_open
  end
  
  def array_close
  end
  
  def complete
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wankel-0.3.0 lib/wankel/ex_sax_parser.rb
wankel-0.2.0 lib/wankel/ex_sax_parser.rb
wankel-0.1.1 lib/wankel/ex_sax_parser.rb
wankel-0.1.0 lib/wankel/ex_sax_parser.rb