Sha256: 66b697390495a1452ad677921970b9da451f9e40c2bca73bd08605574e27ca56

Contents?: true

Size: 461 Bytes

Versions: 5

Compression:

Stored size: 461 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-core-1.5.0 lib/cucumber/core/ast/comment.rb
cucumber-core-1.4.0 lib/cucumber/core/ast/comment.rb
cucumber-core-1.3.1 lib/cucumber/core/ast/comment.rb
cucumber-core-1.3.0 lib/cucumber/core/ast/comment.rb
cucumber-core-1.2.0 lib/cucumber/core/ast/comment.rb