Class: CukePages::Step
- Inherits:
-
Object
- Object
- CukePages::Step
- Defined in:
- lib/cukepages/feature.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
Instance Method Summary collapse
-
#initialize(keyword, action) ⇒ Step
constructor
A new instance of Step.
- #to_s ⇒ Object
Constructor Details
#initialize(keyword, action) ⇒ Step
Returns a new instance of Step.
43 44 45 46 |
# File 'lib/cukepages/feature.rb', line 43 def initialize(keyword, action) @keyword = keyword @action = action end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
41 42 43 |
# File 'lib/cukepages/feature.rb', line 41 def action @action end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
41 42 43 |
# File 'lib/cukepages/feature.rb', line 41 def keyword @keyword end |
Instance Method Details
#to_s ⇒ Object
48 49 50 |
# File 'lib/cukepages/feature.rb', line 48 def to_s "#{keyword} #{action}" end |