Class: Cucumber::StepDefinitionLight
- Inherits:
-
Object
- Object
- Cucumber::StepDefinitionLight
- Defined in:
- lib/cucumber/step_definition_light.rb
Overview
TODO: pointless, ancient, kill with fire. Only used for keeping track of available and invoked step definitions in a way that also works for other programming languages (i.e. cuke4duke) Used for reporting purposes only (usage formatter).
Direct Known Subclasses
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#regexp_source ⇒ Object
readonly
Returns the value of attribute regexp_source.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(regexp_source, location) ⇒ StepDefinitionLight
constructor
A new instance of StepDefinitionLight.
Constructor Details
#initialize(regexp_source, location) ⇒ StepDefinitionLight
Returns a new instance of StepDefinitionLight.
11 12 13 14 |
# File 'lib/cucumber/step_definition_light.rb', line 11 def initialize(regexp_source, location) @regexp_source = regexp_source @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
9 10 11 |
# File 'lib/cucumber/step_definition_light.rb', line 9 def location @location end |
#regexp_source ⇒ Object (readonly)
Returns the value of attribute regexp_source.
9 10 11 |
# File 'lib/cucumber/step_definition_light.rb', line 9 def regexp_source @regexp_source end |
Instance Method Details
#eql?(other) ⇒ Boolean
16 17 18 |
# File 'lib/cucumber/step_definition_light.rb', line 16 def eql?(other) regexp_source == other.regexp_source && location == other.location end |
#hash ⇒ Object
20 21 22 |
# File 'lib/cucumber/step_definition_light.rb', line 20 def hash regexp_source.hash + 31 * location.to_s.hash end |