Method: RBS::Types::Optional#to_json
- Defined in:
- lib/rbs/types.rb
#to_json(state = _ = nil) ⇒ Object
668 669 670 |
# File 'lib/rbs/types.rb', line 668 def to_json(state = _ = nil) { class: :optional, type: type, location: location }.to_json(state) end |