Sha256: 48e40308d93639ae941a23601c3c35130cf3c168896fe5116f8df153e6428041

Contents?: true

Size: 491 Bytes

Versions: 7

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true
require 'cucumber/core/ast/location'

module Cucumber
  module Core
    module Ast
      class Comment
        include HasLocation

        attr_reader :location, :value
        private :value

        def initialize(location, value)
          @location = location
          @value = value
        end

        def to_s
          value
        end

        def inspect
          %{#<#{self.class} #{value} (#{location})}
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/ast/comment.rb
cucumber-core-3.2.1 lib/cucumber/core/ast/comment.rb
cucumber-core-3.2.0 lib/cucumber/core/ast/comment.rb
cucumber-core-3.1.0 lib/cucumber/core/ast/comment.rb
cucumber-core-3.0.0 lib/cucumber/core/ast/comment.rb
cucumber-core-3.0.0.pre.2 lib/cucumber/core/ast/comment.rb
cucumber-core-2.0.0 lib/cucumber/core/ast/comment.rb