Sha256: 882bdf70ebc6ad1bc72ae05688b8c8a6d906a4bed5320ed74e9d9192005ad036

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

module Yoda
  module AST
    class IfNode < Node
      # @return [Node]
      def condition
        children[0]
      end

      # @return [Node]
      def then_clause
        children[1]
      end

      # @return [Node]
      def else_clause
        children[2]
      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/if_node.rb
yoda-language-server-0.10.0 lib/yoda/ast/if_node.rb
yoda-language-server-0.9.0 lib/yoda/ast/if_node.rb
yoda-language-server-0.8.0 lib/yoda/ast/if_node.rb