Sha256: 40c2e29e80319ee998479b2beb2a98452f845d629ec8fa411a245b0db6ddaa52

Contents?: true

Size: 426 Bytes

Versions: 6

Compression:

Stored size: 426 Bytes

Contents

module Parser
  module Source

    # General idea for Map subclasses: only store what's
    # absolutely necessary; don't duplicate the info contained in
    # ASTs; if it can be extracted from source given only the other
    # stored information, don't store it.
    #
    class Map
      attr_reader :expression

      def initialize(expression)
        @expression = expression

        freeze
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
parser-1.1.0 lib/parser/source/map.rb
parser-1.0.1 lib/parser/source/map.rb
parser-1.0.0 lib/parser/source/map.rb
parser-0.9.2 lib/parser/source/map.rb
parser-0.9.1 lib/parser/source/map.rb
parser-0.9.0 lib/parser/source/map.rb