Class: Cucumber::Distrib::Events::Pattern

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(pattern) ⇒ Pattern

Returns a new instance of Pattern.



226
227
228
229
# File 'lib/cucumber/distrib/events.rb', line 226

def initialize(pattern)
  @source = pattern.source
  @type = pattern.type
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



224
225
226
# File 'lib/cucumber/distrib/events.rb', line 224

def source
  @source
end

#typeObject (readonly)

Returns the value of attribute type.



224
225
226
# File 'lib/cucumber/distrib/events.rb', line 224

def type
  @type
end