Class: Fontist::Import::FormulaSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/import/formula_serializer.rb

Instance Method Summary collapse

Constructor Details

#initialize(formula, code) ⇒ FormulaSerializer

Returns a new instance of FormulaSerializer.



4
5
6
7
# File 'lib/fontist/import/formula_serializer.rb', line 4

def initialize(formula, code)
  @formula = formula
  @code = code
end

Instance Method Details

#callObject



9
10
11
# File 'lib/fontist/import/formula_serializer.rb', line 9

def call
  to_h.compact
end