Sha256: 2d3edab7aef04f5189a6f619eb8961072b66608feed78ab36f8dac559eadb7e2

Contents?: true

Size: 381 Bytes

Versions: 20

Compression:

Stored size: 381 Bytes

Contents

module Cucumber
  module CucumberExpressions
    class Group
      attr_reader :value, :start, :end, :children

      def initialize(value, start, _end, children)
        @value = value
        @start = start
        @end = _end
        @children = children
      end

      def values
        (children.empty? ? [self] : children).map(&:value).compact
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
cucumber-cucumber-expressions-10.2.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-cucumber-expressions-10.1.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-cucumber-expressions-10.0.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-cucumber-expressions-9.0.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-cucumber-expressions-8.3.1 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-8.3.0 lib/cucumber/cucumber_expressions/group.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/cucumber-expressions-6.0.1/lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-8.2.1 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-8.2.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-8.1.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-8.0.2 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-8.0.1 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-8.0.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-7.0.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-6.6.2 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-6.0.1 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-6.0.0 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-5.0.18 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-5.0.17 lib/cucumber/cucumber_expressions/group.rb
cucumber-expressions-5.0.16 lib/cucumber/cucumber_expressions/group.rb