Class: Cucumber::Distrib::Events::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/distrib/events.rb

Overview

PORO wrapper of corresponding cucumber event for safe transportation to Leader over DRb.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group) ⇒ Group



261
262
263
264
265
# File 'lib/cucumber/distrib/events.rb', line 261

def initialize(group)
  @start = group.start
  @value = group.value
  @children = group.children.map { |c| Group.new c }
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



259
260
261
# File 'lib/cucumber/distrib/events.rb', line 259

def children
  @children
end

#startObject (readonly)

Returns the value of attribute start.



259
260
261
# File 'lib/cucumber/distrib/events.rb', line 259

def start
  @start
end

#valueObject (readonly)

Returns the value of attribute value.



259
260
261
# File 'lib/cucumber/distrib/events.rb', line 259

def value
  @value
end