Method: SyntaxTree::Case#to_json
- Defined in:
- lib/syntax_tree.rb
#to_json(*opts) ⇒ Object
3382 3383 3384 3385 3386 3387 3388 3389 3390 |
# File 'lib/syntax_tree.rb', line 3382 def to_json(*opts) { type: :case, value: value, cons: consequent, loc: location, cmts: comments }.to_json(*opts) end |