# File lib/session.rb, line 74 def to_hash %w(cmdno cmd out err cid).inject({}){|h,k| h.update k => send(k) } end