Sha256: be38f67a26b6afc242919bdc5b3dedda8e19e094b477ea2b01a2f5d5adca3dc2

Contents?: true

Size: 537 Bytes

Versions: 6

Compression:

Stored size: 537 Bytes

Contents

module Dentaku
  module AST
    class CaseSwitchVariable < Node
      attr_reader :node

      def initialize(node)
        @node = node
      end

      def value(context = {})
        @node.value(context)
      end

      def dependencies(context = {})
        @node.dependencies(context)
      end

      def self.arity
        1
      end

      def self.min_param_count
        1
      end

      def self.max_param_count
        1
      end

      def accept(visitor)
        visitor.visit_switch(self)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dentaku-3.5.4 lib/dentaku/ast/case/case_switch_variable.rb
dentaku-3.5.3 lib/dentaku/ast/case/case_switch_variable.rb
dentaku-3.5.2 lib/dentaku/ast/case/case_switch_variable.rb
dentaku_zevo-3.5.2 lib/dentaku/ast/case/case_switch_variable.rb
dentaku-3.5.1 lib/dentaku/ast/case/case_switch_variable.rb
dentaku-3.5.0 lib/dentaku/ast/case/case_switch_variable.rb