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



606
607
608
609
610
611
612
613
# File 'lib/json/truffle_ruby/generator.rb', line 606

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