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



762
763
764
765
766
767
768
769
# File 'lib/json/truffle_ruby/generator.rb', line 762

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