Class: YARD::CodeObjects::Cucumber::Step
- Defined in:
- lib/yard/code_objects/cucumber/step.rb
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#keyword ⇒ Object
Returns the value of attribute keyword.
-
#scenario ⇒ Object
Returns the value of attribute scenario.
-
#table ⇒ Object
Returns the value of attribute table.
-
#text ⇒ Object
Returns the value of attribute text.
-
#transforms ⇒ Object
Returns the value of attribute transforms.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #has_table? ⇒ Boolean
- #has_text? ⇒ Boolean
-
#initialize(namespace, name) ⇒ Step
constructor
A new instance of Step.
- #transformed? ⇒ Boolean
Methods inherited from Base
Methods included from LocationHelper
#file, #line_number, #location
Constructor Details
#initialize(namespace, name) ⇒ Step
Returns a new instance of Step.
14 15 16 17 18 19 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 14 def initialize(namespace, name) super(namespace, name.to_s.strip) @comments = @definition = @description = @keyword = @table = @text = @value = nil @examples = {} @transforms = [] end |
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def comments @comments end |
#definition ⇒ Object
Returns the value of attribute definition.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def definition @definition end |
#examples ⇒ Object
Returns the value of attribute examples.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def examples @examples end |
#keyword ⇒ Object
Returns the value of attribute keyword.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def keyword @keyword end |
#scenario ⇒ Object
Returns the value of attribute scenario.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def scenario @scenario end |
#table ⇒ Object
Returns the value of attribute table.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def table @table end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def text @text end |
#transforms ⇒ Object
Returns the value of attribute transforms.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def transforms @transforms end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 4 def value @value end |
Instance Method Details
#has_table? ⇒ Boolean
21 22 23 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 21 def has_table? !@table.nil? end |
#has_text? ⇒ Boolean
25 26 27 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 25 def has_text? !@text.nil? end |
#transformed? ⇒ Boolean
37 38 39 |
# File 'lib/yard/code_objects/cucumber/step.rb', line 37 def transformed? !@transforms.empty? end |