Class: Cucumber::Distrib::Events::Pattern
- Inherits:
-
Object
- Object
- Cucumber::Distrib::Events::Pattern
- 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
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(pattern) ⇒ Pattern
constructor
A new instance of Pattern.
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
#source ⇒ Object (readonly)
Returns the value of attribute source.
224 225 226 |
# File 'lib/cucumber/distrib/events.rb', line 224 def source @source end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
224 225 226 |
# File 'lib/cucumber/distrib/events.rb', line 224 def type @type end |