Sha256: 487ad3bfa6688d3851f9a990843a956728064828d75e41c253498e168d27fc24

Contents?: true

Size: 433 Bytes

Versions: 15

Compression:

Stored size: 433 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][0] == :lvar and @parent.has_parameter?(@exp[1][1])
            false
          end

      end

    end

  end

end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
simplabs-excellent-1.2.1 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.2.2 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.3.0 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.3.1 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.4.0 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.4.1 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.4.2 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.5.0 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.5.1 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.5.2 lib/simplabs/excellent/parsing/conditional_context.rb
simplabs-excellent-1.5.3 lib/simplabs/excellent/parsing/conditional_context.rb
excellent-1.7.1 lib/simplabs/excellent/parsing/conditional_context.rb
excellent-1.7.0 lib/simplabs/excellent/parsing/conditional_context.rb
excellent-1.6.0 lib/simplabs/excellent/parsing/conditional_context.rb
excellent-1.5.4 lib/simplabs/excellent/parsing/conditional_context.rb