Sha256: 392bd85baf06a44c1ee3f189cd05cf83b8f98b0e7bf1477d7eebebb31ac0fe77

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

module Yoda
  module AST
    class RescueNode < Node
      # @return [Node]
      def body
        children[0]
      end

      # @return [Array<RescueClauseNode>]
      def rescue_clauses
        children[1..-2]
      end

      # @return [Node]
      def else_clause
        children[-1]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/ast/rescue_node.rb
yoda-language-server-0.10.0 lib/yoda/ast/rescue_node.rb
yoda-language-server-0.9.0 lib/yoda/ast/rescue_node.rb
yoda-language-server-0.8.0 lib/yoda/ast/rescue_node.rb