Sha256: a96467335a4017eec44c400a3fb7747bb95976327853d3e102811b0640e0c716

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

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

    def initialize(*args)
      self.variables = args.flatten
    end

    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

1 entries across 1 versions & 1 rubygems

Version Path
danica-2.6.0 lib/danica/equation.rb