Class: Sapphire::DSL::Scenarios::Broken
- Defined in:
- lib/sapphire/DSL/Scenarios/Broken.rb
Instance Attribute Summary collapse
-
#and ⇒ Object
readonly
Returns the value of attribute and.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #add_and(text, &block) ⇒ Object
-
#initialize(text) ⇒ Broken
constructor
A new instance of Broken.
- #to_s ⇒ Object
Constructor Details
#initialize(text) ⇒ Broken
Returns a new instance of Broken.
13 14 15 16 |
# File 'lib/sapphire/DSL/Scenarios/Broken.rb', line 13 def initialize(text) @text = text @and = [] end |
Instance Attribute Details
#and ⇒ Object (readonly)
Returns the value of attribute and.
11 12 13 |
# File 'lib/sapphire/DSL/Scenarios/Broken.rb', line 11 def and @and end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
10 11 12 |
# File 'lib/sapphire/DSL/Scenarios/Broken.rb', line 10 def text @text end |