Sha256: 8f78f2f30307c851acc7c222c56b5900cc5cbdd6d1a400e4aeb9ebe59402cf62

Contents?: true

Size: 651 Bytes

Versions: 70

Compression:

Stored size: 651 Bytes

Contents

module Parser
  module Source

    class Map::Send < Map
      attr_reader :dot
      attr_reader :selector
      attr_reader :operator
      attr_reader :begin
      attr_reader :end

      def initialize(dot_l, selector_l, begin_l, end_l, expression_l)
        @dot         = dot_l
        @selector    = selector_l
        @begin, @end = begin_l, end_l

        super(expression_l)
      end

      ##
      # @api private
      #
      def with_operator(operator_l)
        with { |map| map.update_operator(operator_l) }
      end

      protected

      def update_operator(operator_l)
        @operator = operator_l
      end
    end

  end
end

Version data entries

70 entries across 70 versions & 5 rubygems

Version Path
parser-2.1.6 lib/parser/source/map/send.rb
parser-2.1.5 lib/parser/source/map/send.rb
parser-2.1.4 lib/parser/source/map/send.rb
parser-2.1.3 lib/parser/source/map/send.rb
parser-2.1.2 lib/parser/source/map/send.rb
parser-2.1.1 lib/parser/source/map/send.rb
parser-2.1.0 lib/parser/source/map/send.rb
parser-2.1.0.pre2 lib/parser/source/map/send.rb
parser-2.1.0.pre1 lib/parser/source/map/send.rb
parser-2.0.0 lib/parser/source/map/send.rb