Class: Typekit::Converter::Collection
- Inherits:
-
Object
- Object
- Typekit::Converter::Collection
- Defined in:
- lib/typekit/converter/collection.rb
Instance Method Summary collapse
-
#initialize(*arguments) ⇒ Collection
constructor
A new instance of Collection.
- #process(result, collection_attributes) ⇒ Object
Constructor Details
#initialize(*arguments) ⇒ Collection
Returns a new instance of Collection.
4 5 6 |
# File 'lib/typekit/converter/collection.rb', line 4 def initialize(*arguments) @arguments = arguments end |
Instance Method Details
#process(result, collection_attributes) ⇒ Object
8 9 10 |
# File 'lib/typekit/converter/collection.rb', line 8 def process(result, collection_attributes) Typekit::Collection.build(*@arguments, collection_attributes) end |