Sha256: 72842ebd460c75031d611920b0658110ddf00078db0cfac4440736cfbcaf720e

Contents?: true

Size: 542 Bytes

Versions: 70

Compression:

Stored size: 542 Bytes

Contents

module Parser
  module Source

    class Map::Constant < Map
      attr_reader :double_colon
      attr_reader :name
      attr_reader :operator

      def initialize(double_colon, name, expression)
        @double_colon, @name = double_colon, name

        super(expression)
      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
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/constant.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/constant.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/lib/parser/source/map/constant.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/lib/parser/source/map/constant.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/lib/parser/source/map/constant.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.2/lib/parser/source/map/constant.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.0/lib/parser/source/map/constant.rb
parser-2.4.0.2 lib/parser/source/map/constant.rb
parser-2.4.0.1 lib/parser/source/map/constant.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/lib/parser/source/map/constant.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/lib/parser/source/map/constant.rb
parser-2.4.0.0 lib/parser/source/map/constant.rb
parser-2.3.3.1 lib/parser/source/map/constant.rb
parser-2.3.3.0 lib/parser/source/map/constant.rb
parser-2.3.2.0 lib/parser/source/map/constant.rb
parser-2.3.1.4 lib/parser/source/map/constant.rb
parser-2.3.1.3 lib/parser/source/map/constant.rb
erruby_parser-2.3.1.2 lib/parser/source/map/constant.rb
parser-2.3.1.2 lib/parser/source/map/constant.rb
parser-2.3.1.1 lib/parser/source/map/constant.rb