Sha256: 64daed7770d0fb17657fcae54797f0408a6f5005a12070a115e403c52c435bf8

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

module Simplabs

  module Excellent

    module Parsing

      class GvarContext < SexpContext #:nodoc:

        def initialize(exp, parent)
          super
          @name      = exp[1].to_s.sub(/^\$/, '')
          @full_name = @name
        end

        def reassigned_local_exception_var?
          if self.parent.is_a?(Simplabs::Excellent::Parsing::ResbodyContext)
            @name == '!' && self.parent.assigns_exception_to_local_variable?.inspect
          else
            false
          end
        end

      end

    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
excellent-1.7.2 lib/simplabs/excellent/parsing/gvar_context.rb