Sha256: 8e86e7ff4acfc637c6175616c3ee92be9c72a359a2f96375662431637c12ad5c

Contents?: true

Size: 372 Bytes

Versions: 8

Compression:

Stored size: 372 Bytes

Contents

require "fontist/utils"
require "fontist/font_formula"

module Fontist
  module Formulas
    def self.register_formulas
      Formulas.constants.select do |constant|
        if Formulas.const_get(constant).is_a?(Class)
          klass = "Fontist::Formulas::#{constant}"
          Fontist::Registry.register(Object.const_get(klass))
        end
      end
    end
  end
end

Version data entries

8 entries across 7 versions & 2 rubygems

Version Path
fontist-1.3.0 lib/fontist/formulas.rb
fontist-1.2.1 lib/fontist/formulas.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/fontist-1.1.0/lib/fontist/formulas.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/fontist-1.2.0/lib/fontist/formulas.rb
fontist-1.2.0 lib/fontist/formulas.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/fontist-1.1.0/lib/fontist/formulas.rb
fontist-1.1.0 lib/fontist/formulas.rb
fontist-1.0.0 lib/fontist/formulas.rb