Sha256: c97b0408f0767c33cfa68a1920365c010bdff63ae9353b0c2d7b6228627d57cd

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

Stored size: 405 Bytes

Contents

module Danica
  class Equation
    include VariablesHolder
  
    autoload :Builder, 'danica/equation/builder'

    class << self
      def build(*variables, &block)
        Builder.new(*variables, &block).build
      end

      def create(*variables, &block)
        build(*variables, &block).new
      end
    end

    def to(format)
      "#{left.to(format)} = #{right.to(format)}"
    end
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
danica-2.6.4 lib/danica/equation.rb
danica-2.6.3 lib/danica/equation.rb
danica-2.6.2 lib/danica/equation.rb
danica-2.6.1 lib/danica/equation.rb