Class: Typekit::Converter::Element

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

Instance Method Summary collapse

Constructor Details

#initialize(*arguments) ⇒ Element

Returns a new instance of Element.



4
5
6
# File 'lib/typekit/converter/element.rb', line 4

def initialize(*arguments)
  @arguments = arguments
end

Instance Method Details

#process(result, attributes) ⇒ Object



8
9
10
# File 'lib/typekit/converter/element.rb', line 8

def process(result, attributes)
  Typekit::Element.build(*@arguments, attributes)
end