Class: CukeSniffer::FeatureRuleTarget
- Inherits:
-
RuleTarget
- Object
- RuleTarget
- CukeSniffer::FeatureRuleTarget
- Defined in:
- lib/cuke_sniffer/feature_rules_evaluator.rb
Overview
- Author
-
Robert Cochran ([email protected])
- Copyright
-
Copyright © 2013 Robert Cochran
- License
-
Distributes under the MIT License
Parent class for Feature and Scenario objects holds shared attributes and rules. Extends CukeSniffer::RuleTarget
Constant Summary
Constants included from RuleConfig
RuleConfig::ERROR, RuleConfig::FATAL, RuleConfig::INFO, RuleConfig::RULES, RuleConfig::WARNING
Constants included from Constants
Constants::COMMENT_REGEX, Constants::DATE_REGEX, Constants::DEFAULT_OUTPUT_FILE_NAME, Constants::FILE_IGNORE_LIST, Constants::HOOK_REGEX, Constants::HOOK_STYLES, Constants::MARKUP_SOURCE, Constants::SCENARIO_TITLE_STYLES, Constants::STEP_DEFINITION_REGEX, Constants::STEP_REGEX, Constants::STEP_STYLES, Constants::TAG_REGEX, Constants::THRESHOLDS
Instance Attribute Summary collapse
-
#name ⇒ Object
string: Name of the Feature or Scenario.
-
#tags ⇒ Object
string array: Contains all tags attached to a Feature or Scenario.
Attributes inherited from RuleTarget
#location, #rules_hash, #score
Instance Method Summary collapse
-
#==(comparison_object) ⇒ Object
:nodoc:.
-
#initialize(location) ⇒ FeatureRuleTarget
constructor
Location must be in the format of “file_pathfile_name.rb:line_number”.
Methods inherited from RuleTarget
Constructor Details
#initialize(location) ⇒ FeatureRuleTarget
Location must be in the format of “file_pathfile_name.rb:line_number”
22 23 24 25 26 |
# File 'lib/cuke_sniffer/feature_rules_evaluator.rb', line 22 def initialize(location) @name = "" = [] super(location) end |
Instance Attribute Details
#name ⇒ Object
string: Name of the Feature or Scenario
19 20 21 |
# File 'lib/cuke_sniffer/feature_rules_evaluator.rb', line 19 def name @name end |
#tags ⇒ Object
string array: Contains all tags attached to a Feature or Scenario
16 17 18 |
# File 'lib/cuke_sniffer/feature_rules_evaluator.rb', line 16 def end |
Instance Method Details
#==(comparison_object) ⇒ Object
:nodoc:
28 29 30 31 32 |
# File 'lib/cuke_sniffer/feature_rules_evaluator.rb', line 28 def == (comparison_object) # :nodoc: super(comparison_object) && comparison_object.name == name && comparison_object. == end |