Class: Jason::JSONEruby
- Inherits:
-
Erubis::Eruby
- Object
- Erubis::Eruby
- Jason::JSONEruby
- Defined in:
- lib/jason/json_eruby.rb
Instance Method Summary collapse
Instance Method Details
#add_expr(src, code, indicator)
5 6 7 8 9 10 11 12 |
# File 'lib/jason/json_eruby.rb', line 5 def add_expr(src, code, indicator) case indicator when '=' add_expr_literal(src, "(#{code}).to_json") when '==' add_expr_literal(src, code) end end |