collectiveidea/unicode_math

View on GitHub

Showing 3 of 3 total issues

Method included has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def self.included(base)
      base.class_eval do
        # Half
        define_method 'Β½' do
          0.5
Severity: Minor
Found in lib/unicode_math/fractions.rb - About 1 hr to fix

    Method included has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def self.included(base)
          base.class_eval do
            define_method('⁰') do
              1
            end
    Severity: Minor
    Found in lib/unicode_math/exponents.rb - About 1 hr to fix

      Method included has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def self.included(base)
            base.class_eval do
              %w(Ο€ Ο– 𝛑 𝛑 πœ‹ πœ› 𝝅 𝝕 𝝿 𝞏 𝞹 πŸ‰).each do |pi|
                define_method(pi) do
                  Math::PI
      Severity: Minor
      Found in lib/unicode_math/constants.rb - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language