Method: Code::Object::Json.call
- Defined in:
- lib/code/object/json.rb
.call(**args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/code/object/json.rb', line 6 def self.call(**args) code_operator = args.fetch(:operator, nil).to_code code_arguments = args.fetch(:arguments, []).to_code code_value = code_arguments.code_first case code_operator.to_s when "parse" sig(args) { String } code_parse(code_value) else super end end |