Class: Cucumber::Formatter::Usage::StepDefKey
- Inherits:
-
Object
- Object
- Cucumber::Formatter::Usage::StepDefKey
- Defined in:
- lib/cucumber/formatter/usage.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#mean_duration ⇒ Object
Returns the value of attribute mean_duration.
-
#regexp_source ⇒ Object
readonly
Returns the value of attribute regexp_source.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(regexp_source, location) ⇒ StepDefKey
constructor
A new instance of StepDefKey.
Constructor Details
#initialize(regexp_source, location) ⇒ StepDefKey
Returns a new instance of StepDefKey.
15 16 17 18 |
# File 'lib/cucumber/formatter/usage.rb', line 15 def initialize(regexp_source, location) @regexp_source = regexp_source @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
13 14 15 |
# File 'lib/cucumber/formatter/usage.rb', line 13 def location @location end |
#mean_duration ⇒ Object
Returns the value of attribute mean_duration.
12 13 14 |
# File 'lib/cucumber/formatter/usage.rb', line 12 def mean_duration @mean_duration end |
#regexp_source ⇒ Object (readonly)
Returns the value of attribute regexp_source.
13 14 15 |
# File 'lib/cucumber/formatter/usage.rb', line 13 def regexp_source @regexp_source end |
#status ⇒ Object
Returns the value of attribute status.
12 13 14 |
# File 'lib/cucumber/formatter/usage.rb', line 12 def status @status end |
Instance Method Details
#eql?(other) ⇒ Boolean
20 21 22 |
# File 'lib/cucumber/formatter/usage.rb', line 20 def eql?(other) regexp_source == other.regexp_source && location == other.location end |
#hash ⇒ Object
24 25 26 |
# File 'lib/cucumber/formatter/usage.rb', line 24 def hash regexp_source.hash + 31 * location.to_s.hash end |