Module: JSON::TruffleRuby::Generator::GeneratorMethods::Symbol

Defined in:
lib/json/truffle_ruby/generator.rb

Instance Method Summary collapse

Instance Method Details

#to_json(state = nil, *args) ⇒ Object



674
675
676
677
678
679
680
681
# File 'lib/json/truffle_ruby/generator.rb', line 674

def to_json(state = nil, *args)
  state = State.from_state(state)
  if state.strict?
    name.to_json(state, *args)
  else
    super
  end
end