Sha256: b320393b422045ec915bf1ac038dc9bd4c77d3ee5af48c9ec2f47caf1dd7ead1

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

module Forthic
  class PositionedString
    attr_accessor :string, :location

    # @string [String] the string value
    # @location [CodeLocation] the location of the string in the code
    def initialize(string, location)
      @string = string
      @location = location
    end

    # @return [String]
    def value_of
      @string
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forthic-0.1.0 lib/forthic/positioned_string.rb