Module: Turnip::Node::HasTags
- Included in:
- Example, Feature, Scenario, ScenarioOutline
- Defined in:
- lib/turnip/node/tag.rb
Instance Method Summary collapse
-
#metadata_hash ⇒ Hash
Convert for hash to be used in RSpec.
-
#tag_names ⇒ Array
Array of tag name.
-
#tags ⇒ Array
Array of Tag.
Instance Method Details
#metadata_hash ⇒ Hash
Convert for hash to be used in RSpec
42 43 44 |
# File 'lib/turnip/node/tag.rb', line 42 def Hash[.map { |t| [t.name.to_sym, true] }] end |
#tag_names ⇒ Array
Returns Array of tag name.
33 34 35 |
# File 'lib/turnip/node/tag.rb', line 33 def tag_names .map(&:name) end |