Sha256: d21eeb12d80068b840690c71b70074b045a9c09d676292fb2cac7cf5f32a5958
Contents?: true
Size: 270 Bytes
Versions: 5
Compression:
Stored size: 270 Bytes
Contents
require 'erubis' module Jason class JSONEruby < Erubis::Eruby def add_expr(src, code, indicator) case indicator when '=' add_expr_literal(src, "(#{code}).to_json") when '==' add_expr_literal(src, code) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
jason-0.6.0 | lib/jason/json_eruby.rb |
jason-0.5.0 | lib/jason/json_eruby.rb |
jason-0.4.0 | lib/jason/json_eruby.rb |
jason-0.3.1 | lib/jason/json_eruby.rb |
jason-0.3.0 | lib/jason/json_eruby.rb |