Class: Shoes::TextElement

Inherits:
Object
  • Object
show all
Defined in:
lib/shoes/mocks/mocked_classes.rb

Direct Known Subclasses

Alert, Paragraph, TextBlockElement

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject

Returns the value of attribute text.



5
6
7
# File 'lib/shoes/mocks/mocked_classes.rb', line 5

def text
  @text
end