Class: Thanos::Factory::TextObject
- Inherits:
-
Object
- Object
- Thanos::Factory::TextObject
- Defined in:
- lib/thanos/factories/text_object.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(text_objects) ⇒ TextObject
constructor
A new instance of TextObject.
Constructor Details
#initialize(text_objects) ⇒ TextObject
Returns a new instance of TextObject.
6 7 8 |
# File 'lib/thanos/factories/text_object.rb', line 6 def initialize(text_objects) @text_objects = text_objects end |
Instance Method Details
#build ⇒ Object
10 11 12 13 14 |
# File 'lib/thanos/factories/text_object.rb', line 10 def build @text_objects.collect do |text_object| Thanos::TextObject.new(text_object) end end |