Class: TurnipFormatter::Step
- Inherits:
-
Object
- Object
- TurnipFormatter::Step
- Defined in:
- lib/turnip_formatter/step.rb,
lib/turnip_formatter/step/failure.rb,
lib/turnip_formatter/step/pending.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#docs ⇒ Object
readonly
Returns the value of attribute docs.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #attention? ⇒ Boolean
-
#initialize(description) ⇒ Step
constructor
A new instance of Step.
Constructor Details
#initialize(description) ⇒ Step
Returns a new instance of Step.
7 8 9 10 11 12 |
# File 'lib/turnip_formatter/step.rb', line 7 def initialize(description) step_name, keyword, docstring = description @name = keyword + step_name @docs = {} @docs[:extra_args] = docstring unless docstring.empty? end |
Instance Attribute Details
#docs ⇒ Object (readonly)
Returns the value of attribute docs.
5 6 7 |
# File 'lib/turnip_formatter/step.rb', line 5 def docs @docs end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/turnip_formatter/step.rb', line 5 def name @name end |
Instance Method Details
#attention? ⇒ Boolean
14 15 16 |
# File 'lib/turnip_formatter/step.rb', line 14 def attention? false end |