Class: Marver::Factory::TextObject

Inherits:
Object
  • Object
show all
Defined in:
lib/marver/factories/text_object.rb

Instance Method Summary collapse

Constructor Details

#initialize(text_objects) ⇒ TextObject

Returns a new instance of TextObject.



4
5
6
# File 'lib/marver/factories/text_object.rb', line 4

def initialize text_objects
  @text_objects = text_objects
end

Instance Method Details

#buildObject



8
9
10
11
12
# File 'lib/marver/factories/text_object.rb', line 8

def build
  @text_objects.collect do |text_object|
    Marver::TextObject.new(text_object)
  end
end