Sha256: e35b345266237e85718578301305cac513ba508b8c2878d16c710be562cee2c1

Contents?: true

Size: 446 Bytes

Versions: 5

Compression:

Stored size: 446 Bytes

Contents

require 'simplabs/excellent/parsing/sexp_context'

module Simplabs

  module Excellent

    module Parsing

      class ConditionalContext < SexpContext #:nodoc:

        protected

          def contains_parameter?
            return false unless @parent.is_a?(MethodContext)
            return @exp[1][1] if !!@exp[1] && @exp[1][0] == :lvar and @parent.has_parameter?(@exp[1][1])
            false
          end

      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
excellent-2.1.1 lib/simplabs/excellent/parsing/conditional_context.rb
excellent-2.1.0 lib/simplabs/excellent/parsing/conditional_context.rb
excellent-2.0.1 lib/simplabs/excellent/parsing/conditional_context.rb
excellent-2.0.0 lib/simplabs/excellent/parsing/conditional_context.rb
excellent-1.7.2 lib/simplabs/excellent/parsing/conditional_context.rb