Class: Shoes::TextElement
- Inherits:
-
Object
- Object
- Shoes::TextElement
- Defined in:
- lib/shoes/mocks/mocked_classes.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ TextElement
constructor
A new instance of TextElement.
Constructor Details
#initialize(text) ⇒ TextElement
Returns a new instance of TextElement.
6 7 8 |
# File 'lib/shoes/mocks/mocked_classes.rb', line 6 def initialize(text) self.text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/shoes/mocks/mocked_classes.rb', line 5 def text @text end |