Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Simple Structured Log Format "SSON"

bash0C7
June 02, 2013

Simple Structured Log Format "SSON"

RubyHiroba2013 Lightning Talks
公開版資料なので発表時とは一部スライドが異なっております。

bash0C7

June 02, 2013

Transcript

29 slides
  1. require ‘nendo’ core = Nendo::Core.new core.loadInitFile core.evalStr( '(define (sexpToString sexp)

    (write-to-string sexp))' ) core.evalStr( '(export-to-ruby sexpToString)' ) list = {hoge: 123}.to_list core.sexpToString(list) #=> "((hoge . 123))"
  2. let(:text) {'(("time" 1362020400)("NAME" "KOSHIBA")("AGE" 32))'} ʻ৭ʑུʼ context do let(:time) {result.first}

    it {time.should == 1362020400} end context do let(:hash) {result.last} it do hash.size.should == 3 hash['NAME'].should == 'KOSHIBA' hash['AGE'].should == 32 hash['HOGE'].should == 'fuga' end end

More Decks by bash0C7

Other Decks in Technology