Sha256: 1c7928fb870add2733a7df80eec1ecd4908ed6b129fb5bd2efc72c4c1db29c99

Contents?: true

Size: 491 Bytes

Versions: 20

Compression:

Stored size: 491 Bytes

Contents

require 'simplabs/excellent/parsing/conditional_context'

module Simplabs

  module Excellent

    module Parsing

      class CaseContext < ConditionalContext #:nodoc:

        def initialize(exp, parent)
          super
          @has_else_clause = exp.last
          @tests_parameter = contains_parameter?
        end

        def has_else_clause?
          @has_else_clause
        end

        def tests_parameter?
          @tests_parameter
        end

      end

    end

  end

end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
simplabs-excellent-1.2.1 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.2.2 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.3.0 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.3.1 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.4.0 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.4.1 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.4.2 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.5.0 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.5.1 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.5.2 lib/simplabs/excellent/parsing/case_context.rb
simplabs-excellent-1.5.3 lib/simplabs/excellent/parsing/case_context.rb
excellent-2.1.1 lib/simplabs/excellent/parsing/case_context.rb
excellent-2.1.0 lib/simplabs/excellent/parsing/case_context.rb
excellent-2.0.1 lib/simplabs/excellent/parsing/case_context.rb
excellent-2.0.0 lib/simplabs/excellent/parsing/case_context.rb
excellent-1.7.2 lib/simplabs/excellent/parsing/case_context.rb
excellent-1.7.1 lib/simplabs/excellent/parsing/case_context.rb
excellent-1.7.0 lib/simplabs/excellent/parsing/case_context.rb
excellent-1.6.0 lib/simplabs/excellent/parsing/case_context.rb
excellent-1.5.4 lib/simplabs/excellent/parsing/case_context.rb