Class: Fontist::Import::FormulaSerializer
- Inherits:
-
Object
- Object
- Fontist::Import::FormulaSerializer
- Defined in:
- lib/fontist/import/formula_serializer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(formula, code) ⇒ FormulaSerializer
constructor
A new instance of FormulaSerializer.
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
#call ⇒ Object
9 10 11 |
# File 'lib/fontist/import/formula_serializer.rb', line 9 def call to_h.compact end |