Method: SyntaxTree::Case#initialize
- Defined in:
- lib/syntax_tree.rb
#initialize(keyword:, value:, consequent:, location:, comments: []) ⇒ Case
Returns a new instance of Case.
3334 3335 3336 3337 3338 3339 3340 |
# File 'lib/syntax_tree.rb', line 3334 def initialize(keyword:, value:, consequent:, location:, comments: []) @keyword = keyword @value = value @consequent = consequent @location = location @comments = comments end |