Class: Typekit::Converter::Collection

Inherits:
Object
  • Object
show all
Defined in:
lib/typekit/converter/collection.rb

Instance Method Summary collapse

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